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
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
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
3 matches
Mail list logo