why doesn't this display as a text area in the admin?
Specifically, why doesn't Definition show up as a text area in /admin:
class DictionAid (models.Model):
Id = models.AutoField(primary_key=True)
Term = models.CharField (max_length=50, blank=False,
db_index=True)
Definition = models.TextField (max_length=1000, blank=False)
DateAdded = models.DateTimeField (auto_now_add=True,
blank=False, db_index=True)
class DictionAidAdmin(admin.ModelAdmin):
list_display = ('Term','DateAdded',)
list_filter = ['DateAdded']
search_fields = ['Term','Definition']
admin.site.register(DictionAid,DictionAidAdmin)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home