Ragnyll / FridgeFiller

Our Project For CS 4096
1 stars 1 forks source link

Work on User model in lists app #30

Closed jonsimington closed 8 years ago

jonsimington commented 8 years ago

If we are going to extend the default User model provided by django, we need to rename it as to avoid naming conflicts.

from django.contrib.auth.models import User

u = User.objects.get(name="jon")
print u

# -> <User: jon>

from fridgefiller.lists.models import User

u2 = User.objects.get(name="jon")
print u2

# -> <User: jon>

Since the lists app User model inherits from the django.contrib User model, the u2 object has more fields than the u object EVEN THO they are kind of the same object.

I suggest something like UserProfile