We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8524655 commit ba00e86Copy full SHA for ba00e86
tests/testprofiles/models.py
@@ -23,7 +23,12 @@ class TestProfile(models.Model):
23
user = models.OneToOneField('auth.User')
24
age = models.CharField(max_length=100, blank=True)
25
26
+ def process_first_name(self, first_name):
27
+ self.first_name = first_name[0]
28
else:
29
from django.contrib.auth.models import AbstractUser
30
class TestUser(AbstractUser):
31
32
+
33
34
0 commit comments