16 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
9d8a8a5ae6 Add migration to alter news options 2024-04-01 16:00:49 -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
Natalia
36a61d064a Send emails when a news is posted (using notification preferences accordingly). 2023-06-22 19:23:16 -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
3e6ae221b4 Allow entry creation, update and listing to include an image.
Part of #273
2023-06-01 15:21:47 -03:00
Natalia
db1ad7983b Revert changes to files inside static/img and static/animations
Also revert changes to migrations
2023-05-30 23:21:53 -03:00
Natalia
a8cd8f507a Ran pre-commit run -a
Completed runs of black and rest of pre-commit checks.
2023-05-30 23:21:53 -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
8765fa4227 Minimal changes to migration to allow empty moderator and approval date in admin 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