diff --git a/beat/web/navigation/models.py b/beat/web/navigation/models.py index a8136f1c79b1e36e8f1bd4cc32725ed5db7e8903..2b87891beb0aa972f40ee0ca6ce6d7b1bea319df 100644 --- a/beat/web/navigation/models.py +++ b/beat/web/navigation/models.py @@ -29,19 +29,15 @@ from django.db import models from django.contrib.auth.models import User -#---------------------------------------------------------- +# ---------------------------------------------------------- class Agreement(models.Model): user = models.OneToOneField(User) version = models.PositiveIntegerField( - default=1, - help_text='Last version of the ToS the user has agreed with', + default=1, help_text="Last version of the ToS the user has agreed with" ) - def __unicode__(self): - return u"%s agrees with ToS version %d" % ( - self.user.username, - self.version - ) + def __str__(self): + return "%s agrees with ToS version %d" % (self.user.username, self.version)