hello,  simple problem :

class Tag(models.Model):
    name = models.CharField(maxlength=200, core=True)
    total_ref = models.IntegerField(blank=True, null=True)

    class Admin:
        ordering = ['name']

    def __str__(self):
        return self.name

    def get_absolute_url(self):
        return "/blog/tag/%s/" % (self.name)

    def save(self):
        self.total_ref = 28
        super(Tag, self).save()


when i add a tag element via the admin interface, or from a blog entry.
total_ref is always null. why doesnt it get affected to 28 ?
thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to