Re: get_absolute_url not recognized

2009-12-23 Thread Doug Blank
On Tue, Dec 22, 2009 at 2:21 PM, neridaj wrote: > I'm trying to add a get_absolute_url method to a Tweet model from > django-syncr and do not understand why the method is not recognized. > > class Tweet(models.Model): >    pub_time    = models.DateTimeField() >    twitter_id  = models.PositiveInte

Re: get_absolute_url not recognized

2009-12-23 Thread Alex Robbins
Is the second line of your url function outdented? Maybe python thinks your class is finished at that point? You could try indenting it? If that doesn't fix it I would drop the decorator for now to see if that fixes it. Then you could try dropping the body of the get_absolute_url function and repl

get_absolute_url not recognized

2009-12-22 Thread neridaj
I'm trying to add a get_absolute_url method to a Tweet model from django-syncr and do not understand why the method is not recognized. class Tweet(models.Model): pub_time= models.DateTimeField() twitter_id = models.PositiveIntegerField() text= models.TextField() user