Added date picker to "date made" on "add sandwich" template.
[~kgodey/maayanwich.git] / admin.py
1 from django.contrib import admin
2 from recipes.maayanwich.models import Ingredient, Sandwich
3         
4 class IngredientAdmin(admin.ModelAdmin):
5         prepopulated_fields = {"slug": ("name",)}
6                 
7 class SandwichAdmin(admin.ModelAdmin):
8         prepopulated_fields = {"slug": ("adjective",)}
9
10 admin.site.register(Ingredient, IngredientAdmin)
11 admin.site.register(Sandwich, SandwichAdmin)