git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deleting sandwiches works.
[~kgodey/maayanwich.git]
/
admin.py
diff --git
a/admin.py
b/admin.py
index
ad93a1a
..
dab4666
100644
(file)
--- a/
admin.py
+++ b/
admin.py
@@
-1,8
+1,5
@@
from django.contrib import admin
from django.contrib import admin
-from recipes.maayanwich.models import Artist, Ingredient, Sandwich
-
-class ArtistAdmin(admin.ModelAdmin):
- prepopulated_fields = {"slug": ("name",)}
+from recipes.maayanwich.models import Ingredient, Sandwich
class IngredientAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
class IngredientAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("name",)}
@@
-10,6
+7,5
@@
class IngredientAdmin(admin.ModelAdmin):
class SandwichAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("adjective",)}
class SandwichAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("adjective",)}
-admin.site.register(Artist, ArtistAdmin)
admin.site.register(Ingredient, IngredientAdmin)
admin.site.register(Sandwich, SandwichAdmin)
\ No newline at end of file
admin.site.register(Ingredient, IngredientAdmin)
admin.site.register(Sandwich, SandwichAdmin)
\ No newline at end of file