Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Autofield and Movie description field #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added core/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/forms.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added core/__pycache__/views.cpython-310.pyc
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by Django 4.1.5 on 2023-01-11 15:17

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

dependencies = [
('core', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='movie',
name='descripion',
),
migrations.AddField(
model_name='movie',
name='description',
field=models.TextField(blank=True),
),
migrations.AlterField(
model_name='customuser',
name='profiles',
field=models.ManyToManyField(to='core.profile'),
),
migrations.AlterField(
model_name='movie',
name='age_limit',
field=models.CharField(blank=True, choices=[('All', 'All'), ('Kids', 'Kids')], max_length=5, null=True),
),
migrations.AlterField(
model_name='movie',
name='flyer',
field=models.ImageField(blank=True, null=True, upload_to='flyers'),
),
migrations.AlterField(
model_name='movie',
name='type',
field=models.CharField(choices=[('single', 'Single'), ('seasonal', 'Seasonal')], max_length=10),
),
migrations.AlterField(
model_name='movie',
name='uuid',
field=models.UUIDField(default=uuid.uuid4, unique=True),
),
migrations.AlterField(
model_name='profile',
name='age_limit',
field=models.CharField(choices=[('All', 'All'), ('Kids', 'Kids')], max_length=5),
),
migrations.AlterField(
model_name='profile',
name='uuid',
field=models.UUIDField(default=uuid.uuid4, unique=True),
),
]
Binary file not shown.
Binary file added core/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __str__(self):

class Movie(models.Model):
title:str=models.CharField(max_length=225)
description:str=models.TextField()
description:str=models.TextField(blank=True)
created =models.DateTimeField(auto_now_add=True)
uuid=models.UUIDField(default=uuid.uuid4,unique=True)
type=models.CharField(max_length=10,choices=MOVIE_TYPE)
Expand Down
Empty file added db.sqlite3
Empty file.
Binary file added django_netflix/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file not shown.
Binary file added django_netflix/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added django_netflix/__pycache__/wsgi.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions django_netflix/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@

# Auth stting
AUTH_USER_MODEL='core.CustomUser'
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' # new

AUTHENTICATION_BACKENDS = [

Expand Down