-
Notifications
You must be signed in to change notification settings - Fork 0
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
INTR-305 - Move the events models/code into the content app - Step 1 #756
base: main
Are you sure you want to change the base?
Conversation
src/content/model/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, Django is looking in the models.py
file to find the model definitions. If we delete this file and rename the directory from model
to models
then Django will look in the models/__init__.py
file for the definitions.
We can update the __init__.py
file to import the models defined in each of the new files
src/content/model/events.py
Outdated
@@ -0,0 +1,148 @@ | |||
from datetime import datetime as dt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the changes from the previous message have been made, you can run ./manage.py makemigrations
which will create the event models in the content
app.
When these models have been created, we can create a data migration to copy the data from the events app to the content app.
Co-authored-by: Cameron Lamb <[email protected]>
Co-authored-by: Cameron Lamb <[email protected]>
Marked this PR as a draft as it is being actively worked on and is not ready for review/merging |
Incoming Changes:
Todo:
Checklist: