The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> | |
| <script src="https://rawgit.com/baconjs/bacon.js/master/dist/Bacon.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.8.0/lodash.js"></script> | |
| </head> | |
| <body> |
| class User(AbstractBaseUser, PermissionsMixin): | |
| class Meta: | |
| abstract = False | |
| USERNAME_FIELD = 'email' | |
| account_type = models.IntegerField(choices=ACCOUNT_TYPES, default=2) | |
| first_name = models.CharField(max_length=30) | |
| middle_names = models.CharField(max_length=30) |
| class User(AbstractBaseUser, PermissionsMixin): | |
| class Meta: | |
| abstract = False | |
| USERNAME_FIELD = 'email' | |
| account_type = models.IntegerField(choices=ACCOUNT_TYPES, default=2) | |
| first_name = models.CharField(max_length=30) | |
| middle_names = models.CharField(max_length=30) |