Thursday, January 31, 2013

Re: previous values of custom method in save

Daniel, thank you for your response.
I just use standard "edit album" page in admin interface without any special forms or widgets for ManyToManyField.
Perhaps it worth mentioning, I also use django-mptt for Tag like this:

    from mptt.models import MPTTModel, TreeForeignKey

    class Tag(MPTTModel):
        name = models.CharField(max_length=50, unique=True)
        parent = TreeForeignKey('self', null=True, blank=True, related_name='children')




четверг, 31 января 2013 г., 14:52:35 UTC+4 пользователь Daniel Roseman написал:
On Wednesday, 30 January 2013 10:31:09 UTC, Sammael wrote:
<snip>
When I change 'tags' in admin panel and save my model, old tags are being written to file 'info.txt' instead of new ones, but it works good with regular fields like self.name
How do I overcome this issue?
Thank you in advance for any advice.


How are you updating the tags?
--
Daniel.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment