generated from 2martens/django-template
Renamed app and Django template
This commit is contained in:
11
food_planner/models.py
Normal file
11
food_planner/models.py
Normal file
@ -0,0 +1,11 @@
|
||||
# coding=utf-8
|
||||
from django.contrib.auth.models import User
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Profile(models.Model):
|
||||
user = models.OneToOneField(User, models.CASCADE)
|
||||
|
||||
def __str__(self):
|
||||
return self.user.username
|
||||
|
||||
Reference in New Issue
Block a user