-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add model and form to create and edit exhibitors #9128
base: dev-v3
Are you sure you want to change the base?
Add model and form to create and edit exhibitors #9128
Conversation
@hongquan Could you please review this PR |
Please add only one new migration file per app. Your new "events" app is adding 3 new migrations. It is redundant. Also please format your new code with Ruff. |
event_topics/models.py
Outdated
event_topic_id = models.ForeignKey(EventTopic, on_delete=models.CASCADE, null=True) | ||
|
||
def __str__(self): | ||
return self.name |
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.
You name
field is defined as null=True
, so self.name
can be None
. It is illegal for __str__
(must always be string).
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.
Sorry for the delay. I have added the suggested changes. Pls review.
Fixes #9111
Short description of what this resolves:
Added model and form to create and edit exhibitors
Changes proposed in this pull request:
Exhibitors
insideevents
app.forms.py
filePS - This PR builds on top of work done in PR #9125. Please merge it before merging this PR.
Checklist
development
branch.