i have in my models : class User(AbstractUser): ... ... longueur =models.IntegerField(null=True, blank=True)
and i want in my views : when the user is logged to get his 'longueur ' in integer form and do some operations. like u=User.objects.get(username=self.request.user) longitude = u.longitude in integer form my console show me None -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2e3ba0b8-198e-4771-af6d-d05de719ab3c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.