Hello again,
well i am stupid:
the code above works,null=True should work
but when changin the model a simple "manage.py syncdb"
is sometimes not enough as it does not alter created tables
so i "manage.py reset" the whole thing and that's it...
sorry for the spam
kalinsko
On Jun 2, 8:34 pm, kali
Hi Djangos,
i am attaching a UserProfile to my Users
by using a post_save signal:
class UserProfile(models.Model):
user = models.ForeignKey(User, unique=True)
address = models.ForeignKey(Address, blank=True, null=True)
def user_post_save(sender, instance, signal, *args, **kwargs):
pr
2 matches
Mail list logo