I got a model using django-taggit. It works great when I add tags in the admin, but when the tags are added in code ( they're read from the EXIF-data in a photo, the keywords part ) - nothing is shown in the admin change form tag-field for the model. I can see the values are stored correctly when I debug the save-method, but when the model instance is shown in the admin the tag-field is empty.
>>> from photoapp.models import * >>> d = AdvancedPhoto(title='1', image='/home/thomas/Pictures/test.jpg') >>> d.save() >>> d.tags.all() [<Tag: foo>, <Tag: bar>, <Tag: foobar>] >>> AdvancedPhoto.objects.all()[1].tags.all() [<Tag: foo>, <Tag: bar>, <Tag: foobar>] This works fine. Saving/adding a photo in the admin and then checking it in the shell afterwards: >>> from photoapp.models import * >>> AdvancedPhoto.objects.all()[0].tags.all() [] Hmmm ... what's going on?? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.