21 Commits

Author SHA1 Message Date
daveoconnor
c7571ae569 News article automated summaries generation (#1906) 2025-09-25 17:28:45 -07:00
Greg Kaleka
c57d905594 Support release report pdf attachment to news (#1543) 2024-12-11 17:22:49 -05:00
Kenneth Reitz
1ec6516372 Update verbose_name_plural in News model 2024-03-25 18:05:12 -04:00
Lacey Williams Henschel
7507fa50b3 Limit file types of user and news images
- Add file type validator
- Apply validator to user image
- Save validator class to variable
- Add image validator to news image model field
- Add file size validator
- Enable file size validator on news and user model image fields
- Fix test
2023-11-03 10:21:36 -07:00
Frank Wiles
ad119f0e70 Adjust slug and external_url from Django defaults
These fields were just using the default max lengths of 50 and 200
respectively.  Since `title`s can be up to 255 characters, adjusted
slug to be 300.

Increased external URL to be huge as it's not impactful to performance
really and avoids possible future creation issues.

Fixes #773
2023-11-02 06:00:11 -05:00
Lacey Williams Henschel
b7f6ae5dd7 - Add a published() method on the Entry manager
- Return the most recent 3 news articles on the main homepage and most recent 2 on the beta homepage, as I wasn't sure which one we were using
- Updated both homepage templates
- Updated tests
2023-08-21 09:39:42 -07:00
Natalia
36a61d064a Send emails when a news is posted (using notification preferences accordingly). 2023-06-22 19:23:16 -03:00
Natalia
06cd04f263 Expose view for user preferences (email notifications so far).
Added tests for the new form and view for updating user preferences.
2023-06-20 12:24:40 -03:00
Natalia
2fddbceed0 Reverted incorrect migration: it became obsolete with the adding of News model 2023-06-16 15:25:20 -03:00
Natalia
80eae90184 Initial model for User's preferences, specifically for email notifications.
Part of #343. The news' notifications module was also changed to the user
preferences is honored when sending news emails.

Also exclude migrations from the black check.
2023-06-16 13:00:16 -03:00
Natalia
812ed9ea15 Added specialized News model to differentiate general Entry from News 2023-06-15 22:57:02 -03:00
Natalia
9ec7a37bb5 Rework of news entries ACLs.
This includes a helper to efficiently query for all moderators.
2023-06-06 17:04:26 -03:00
Natalia
3e6ae221b4 Allow entry creation, update and listing to include an image.
Part of #273
2023-06-01 15:21:47 -03:00
Natalia
43f754520c Allow users to create news by type (plain news, blogpost, video, link, poll)
Expose buttons to create different news per type.
2023-05-30 21:30:33 -03:00
Natalia
2ec0b68ab8 Automatically approve unapproved news that do not require moderation. 2023-05-24 16:25:53 -03:00
Natalia
4396a2ad14 Added new view for News moderation list.
Includes support for the news approve view and news details view to redirect
to a safe URL on approval, to allow moderators to stay in the moderation list.
2023-05-24 13:37:20 -03:00
Natalia
18f6eb3e67 Provide News creation and approval views.
More for #273: this branch provides a new form and view to create news (limited
to authenticated users). For now, every new entry, requires moderation. Approval
can be done via the web UI when visiting a news detail page and having the right
permissions.

Next branch would provide:
* moderator whitelisting
* news list needing moderation view
* email sending on news submission

Missing tests
2023-05-18 20:12:44 -03:00
Natalia
8765fa4227 Minimal changes to migration to allow empty moderator and approval date in admin 2023-05-17 15:12:00 -03:00
Natalia
f0b7ecb771 Refactor to use boolean properties for approved and published conditions 2023-05-17 15:12:00 -03:00
Natalia
0b7d911dc4 Ground work for allowing moderation of News entries. 2023-05-17 15:12:00 -03:00
Natalia
929b82155b News app: provide models and minimal list and detail views. 2023-05-12 17:43:32 -03:00