Re: overriding-default-model-methods what am i doing wrong ?

2006-06-22 Thread coulix
yes it was, thanks. --~--~-~--~~~---~--~~ 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 [EMAIL PROTE

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-22 Thread Adrian Holovaty
On 6/22/06, coulix <[EMAIL PROTECTED]> wrote: > def get_absolute_url(self): > return "/blog/tag/%s/" % (self.name) > > def save(self): > print "foo" > self.total_ref = 28 > super(Tag, self).save() > > "foo" [never] shows up on the

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-22 Thread coulix
imported file used space.. i was puting tab. --~--~-~--~~~---~--~~ 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, s

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-22 Thread coulix
i mean never shows up --~--~-~--~~~---~--~~ 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 [EMAIL PRO

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-22 Thread coulix
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/" %

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-21 Thread Luke Plant
On Tuesday 20 June 2006 17:17, coulix wrote: > 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 It looks OK to me. I do have similar code that sets values like this, so it should work. To debug, try

overriding-default-model-methods what am i doing wrong ?

2006-06-20 Thread coulix
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):