username from User is always giving anonymous

前端 未结 0 984
无人共我
无人共我 2020-12-22 14:31

I am working on a website and when I try to access my username, it gives a null value Here\'s my models:

User = get_user_model()

class Contact(models.Model):         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题