Changes between Initial Version and Version 1 of Ticket #10227, comment 14


Ignore:
Timestamp:
Jul 31, 2015, 2:39:46 PM (9 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10227, comment 14

    initial v1  
    11I came up with this work around as well, to check that when a user is saved it has an associated userprofile
    2 
     2{{{
    33@receiver(post_save, sender=User)
    44def user_saved(sender, instance, created, **kwargs):
     
    77        user_profile.user = instance
    88        user_profile.save()
     9}}}
Back to Top