Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix RecurringRule and OccurringRule model __str__ method #2166

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

Merged
merged 5 commits into from
Sep 13, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update events/models.py
  • Loading branch information
JacobCoffee authored Sep 12, 2024
commit 9a979bfc7b316517aa4a13756e20d2da3d9fb7a9
5 changes: 1 addition & 4 deletions 5 events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,7 @@ class OccurringRule(RuleMixin, models.Model):

def __str__(self):
strftime = settings.SHORT_DATETIME_FORMAT
return (
f'{self.event.title} {date(self.dt_start, strftime)} - '
f'{date(self.dt_end, strftime)}'
)
return f'{self.event.title} {date(self.dt_start, strftime)} - {date(self.dt_end, strftime)}'

@property
def begin(self):
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.