Fix double user creation

This commit is contained in:
Skia 2016-09-02 09:47:33 +02:00
parent 29f565f514
commit bae34c4b1c

View File

@ -29,7 +29,11 @@ class Subscriber(User):
return s.is_valid_now() if s is not None else False
def save(self):
create = False
if not self.id:
create = True
super(Subscriber, self).save()
if create:
try: # Create user on the old site: TODO remove me!
db = MySQLdb.connect(**settings.OLD_MYSQL_INFOS)
c = db.cursor()