Answer the question
In order to leave comments, you need to log in
Django, user registration. How to implement?
model was created with user
class User(model_user.User):
position_lat = models.DecimalField(decimal_places=8, max_digits=10, verbose_name="Широта")
position_long = models.DecimalField(decimal_places=8, max_digits=10, verbose_name="Довгота")
date_registration = models.DateTimeField(auto_now_add=True, verbose_name="Дата реєстрації")
class Meta:
verbose_name = 'Користувач'
verbose_name_plural = 'Користувачі'
def __str__(self):
return self.username
def get_name(self):
return '{0} {1}'.format(self.first_name, self.last_name)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question