-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Add next meeting date field to Meeting Model #2197
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
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@@ -95,6 +95,7 @@ class Meeting(models.Model): | |||
) | |||
treasurer_report = models.TextField(blank=True) | |||
treasurer_report_html = models.TextField(editable=False) | |||
next_meeting_date = models.DateField(null=True, blank=True) |
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.
next_meeting_date = models.DateField(null=True, blank=True) | |
next_meeting_date = models.DateField( | |
null=True, | |
blank=True, | |
help_text=_("This will be shown on the website as the board's next meeting date. The latest meeting's Next Meeting Date will be used.") | |
) |
I wonder if a little bit of context will be helpful to future DSF Secretaries.
occasionally rescheduled for attendance. | ||
{% endblocktranslate %} | ||
{% if next_meeting_date %} | ||
{% translate "Next meeting scheduled for: " context "Following meetings schedule" %} |
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.
{% translate "Next meeting scheduled for: " context "Following meetings schedule" %} | |
{% translate "The next meeting is scheduled for: " context "Following meetings schedule" %} |
I think if this were a bullet point, I would agree with your more concise version, but since it's part of a paragraph, I think a complete sentence reads a bit better.
@@ -104,6 +106,7 @@ def test_latest_meeting_minutes(self): | |||
self.assertContains(response, "Latest DSF meeting minutes") | |||
|
|||
self.assertContains(response, "DSF Board monthly meeting, May 12, 2023") | |||
self.assertContains(response, "Next meeting scheduled for: June 13, 2023") |
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.
We may want to include a test for when there is no next_meeting_date
in the context to confirm "Next meeting schedule for" doesn't appear.
Adds next meeting field discussed in #1705
Updates the foundation sidebar to include the next meeting date to add transparency to the community. At the direction of thibaudcolas discussed in the issue.
Example with the last meeting having a
next_meeting_date
Unsure if it would be better to have the next_meeting_date be calculated inside the template.