John, did you find a solution?
Thank you.
On Thursday, 8 April 2010 19:30:20 UTC+1, John DeRosa wrote:
--Hello Djangonauts,I'm doing something wrong, but I just can't see it!My problem is that a custom model field isn't being displayed in the Admin interface.I'm running OS X 10.6.3, Python 2.6, and Django 1.1.1. I installed django-picklefield 0.1.5 from PyPi, and I'm trying to use it in a database model. I defined a couple of custom PickledObjectField fields. They show up in the Admin model docs as being of type "Text", but they *don't* show up in the Admin when I add or change a row.Here's what I'm doing. What am I doing wrong?John------------------In models.py:from picklefield.fields import PickledObjectFieldclass LayoutTemplate(models.Model):[snip]attachment_points = PickledObjectField(help_text="A list of TemplateAttachmentPoints") placed_objects = PickledObjectField(blank=True,help_text="A list of objects placed on this template")# These LayoutObjects are allowed on this template.allowed_objects = PickledObjectField(help_text="A list of allowed objects.") def __unicode__(self):return u"%s" % self.nameIn admin.py:from hosted.models import LayoutTemplatefrom django.contrib import adminadmin.site.register(LayoutTemplate)
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/QHA-yQ1spEIJ.
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=en.
No comments:
Post a Comment