kopia lustrzana https://github.com/wagtail/wagtail
				
				
				
			Documentation - Fix register_snippet import path typo
							rodzic
							
								
									92407354a9
								
							
						
					
					
						commit
						9bf7a7423a
					
				|  | @ -628,6 +628,7 @@ Contributors | |||
| * Shohan Dutta Roy | ||||
| * Alex (sashashura) | ||||
| * Adinapunyo Banerjee | ||||
| * Dan Hayden | ||||
| 
 | ||||
| 
 | ||||
| Translators | ||||
|  |  | |||
|  | @ -458,7 +458,7 @@ Then, pass the viewset to the `register_snippet` call. | |||
| 
 | ||||
| ```python | ||||
| # wagtail_hooks.py | ||||
| from wagtail.snippets.model import register_snippet | ||||
| from wagtail.snippets.models import register_snippet | ||||
| 
 | ||||
| from myapp.models import Member | ||||
| from myapp.views import MemberViewSet | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Dan Hayden
						Dan Hayden