diff --git a/smugfolioapi/models/smug_users.py b/smugfolioapi/models/smug_users.py index e41f818..311ab34 100644 --- a/smugfolioapi/models/smug_users.py +++ b/smugfolioapi/models/smug_users.py @@ -4,9 +4,7 @@ from django.contrib.auth.models import User class Smug_Users(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) - first_name = models.CharField(max_length=256) - last_name = models.CharField(max_length=256) business_name = models.CharField(max_length=256) - business_owner = models.BooleanField() + business_owner = models.BooleanField(default=False) \ No newline at end of file diff --git a/smugfolioserver/fixtures/auth_user.json b/smugfolioserver/fixtures/auth_user.json new file mode 100644 index 0000000..e69de29 diff --git a/smugfolioserver/fixtures/image_tags.json b/smugfolioserver/fixtures/image_tags.json index e69de29..0647583 100644 --- a/smugfolioserver/fixtures/image_tags.json +++ b/smugfolioserver/fixtures/image_tags.json @@ -0,0 +1,20 @@ +[ + { + "image_tag_name": "landscape" + }, + { + "image_tag_name": "portrait" + }, + { + "image_tag_name": "night" + }, + { + "image_tag_name": "high key" + }, + { + "image_tag_name": "family" + }, + { + "image_tag_name": "wedding" + } +] \ No newline at end of file diff --git a/smugfolioserver/fixtures/image_tags_assignments.json b/smugfolioserver/fixtures/image_tags_assignments.json index e69de29..1610ea1 100644 --- a/smugfolioserver/fixtures/image_tags_assignments.json +++ b/smugfolioserver/fixtures/image_tags_assignments.json @@ -0,0 +1,3 @@ +[ + +] \ No newline at end of file diff --git a/smugfolioserver/fixtures/images.json b/smugfolioserver/fixtures/images.json index e69de29..e10cfdc 100644 --- a/smugfolioserver/fixtures/images.json +++ b/smugfolioserver/fixtures/images.json @@ -0,0 +1,5 @@ +[ + { + "file_name":"" + } +] \ No newline at end of file diff --git a/smugfolioserver/fixtures/smug_users.json b/smugfolioserver/fixtures/smug_users.json index e69de29..e97e9c9 100644 --- a/smugfolioserver/fixtures/smug_users.json +++ b/smugfolioserver/fixtures/smug_users.json @@ -0,0 +1,20 @@ +[ + { + "first name":"Nate", + "last name":"Lubbe", + "business name":"Going-to-the-Sun Photography", + "business owner": false + }, + { + "first name":"Ansel", + "last name":"Adams", + "business name":"Going-to-the-Sun Photography", + "business owner": true + }, + { + "first name":"Chris", + "last name":"Cotuna", + "business name":"Going-to-the-Sun Photography", + "business owner": false + } +]