summaryrefslogtreecommitdiff
path: root/postgresqleu/newsevents/admin.py
AgeCommit message (Collapse)Author
2020-07-13Remove unused importsMagnus Hagander
2020-04-04Enable use of django 2.2 autocomplete in admin viewsMagnus Hagander
2020-04-04Remove dependency on django-selectableMagnus Hagander
The version we have doesn't work in django 2.2. And while there might be newer ones available, we only use it in the admin interface and the newer django has it's own functionality for delivering the same thing there.
2019-01-10Replace __unicode__ with __str__Magnus Hagander
2to3 doesn't do this automatically, probably because weird things can happen if you had both. We know we didn't, so just do a straight replacement.
2018-12-14Fix blankline related warningsMagnus Hagander
2018-12-14Replace tabs with spacesMagnus Hagander
In an effort to close up with PEP8, we should use spaces for indent rather than tabs... Time to update your editor config!
2018-09-23Revamp and expand news handlingMagnus Hagander
A number of improvements and unifications for news: * News posts now get authors * Authors are from NewsPosterProfile:s, which will include a full name and an "urlname" * Authors can also be specified as "can post global", which should give rights to post on the global feed. Right now the global feed requires superuser access anwyay, but for the future... * News can now be posted at conference level as well as previous global only * Front page of website pulls in a combination of global news and conference news. Global news can be given a "high priority until" field that ensure it sits at the top of the frontpage until a certain date, so conference news can't push it off. * Each conference gets it's own RSS feed. This one is also available via JSON for an easy way to pull it into the conference site itself. * All links to posts in the conference feed goes to the conference homepage. It's really only designed for transient news. * Each user also gets it's own RSS feed. This is designed so that it can be submitted to an aggregator like Planet PostgreSQL which requires personal feeds. Conference specific news are automatically prefixed by conference name. * Each post can individually be toggled if it should be included in the RSS feed or not * Re-adds the news archive, with a paginated view * Each post can individually be toggled for inclusion in the news archive, so it's possible to create more transient news. News archive *only* contains news from the global feed, not the conference feeds. * Makes the "read more" button on the frontpage only show up if the entire news post did not fit
2018-09-02Remove reference in adminMagnus Hagander
2014-01-01Clean up unused importsMagnus Hagander
2009-02-20Make news and events read from the database.Magnus Hagander
Enable admin interface to edit news and events. Add countries module to reference for events. Implement RSS feeds for news and events.