Created
July 27, 2010 17:54
-
-
Save dator-zz/492584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# models.py | |
class Item(models.Model): | |
name = models.CharField(max_length=60) | |
created = models.DateTimeField(auto_now_add=True) | |
priority = models.IntegerField(default=0) | |
difficulty = models.IntegerField(default=0) | |
done = models.BooleanField(default=False) | |
class ItemAdmin(admin.ModelAdmin): | |
list_display = ["name", "priority", "difficulty", "created", "done"] | |
search_fields = ["name"] | |
admin.site.register(Item, ItemAdmin) | |
# Je lance le serveur je vais dans l'admin mais l'admin des items n'apparait pas ... une idée ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment