Commit graph

52 commits

Author SHA1 Message Date
Petr Dlouhý
c674948cb7 remove obsolete import 2024-01-23 12:01:51 +01:00
Petr Dlouhý
bd3e807ac6 fixes for Django 4.0 2022-02-24 14:56:17 +01:00
Corey Oordt
076debb44d Adds doc strings for lots of functions. 2021-12-22 12:03:21 -06:00
pre-commit-ci[bot]
5961d6b80f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-12-05 14:34:46 +00:00
Brent O'Connor
366ff74619 Made updates to get everything working with Django 2 2017-12-26 11:27:42 -06:00
Corey Oordt
1df724f48d [-] Remove south migrations 2017-10-12 22:44:21 -05:00
Brent O'Connor
53b92f3f0f Fixed a ValueError that happened when trying to save a Category that has a thumbnail 2017-03-29 20:43:55 -05:00
Brent O'Connor
c4f7978eef PEP8 fixes 2016-11-14 12:29:05 -06:00
Brent O'Connor
64686cdaa8 Made a bunch of flake8 fixes and also added flake8 testing to Travis and Tox 2016-02-15 15:47:21 -06:00
Brent O'Connor
f61e6f6f36 Fixed the max_length setting to use a int instead of a string 2016-02-15 11:53:01 -06:00
Brent O'Connor
87a22098be Switched form using force_unicode to force_text 2016-02-10 11:58:03 -06:00
Brent O'Connor
c5c459fe42 Ran the 2to3 script 2to3 -w . 2016-02-10 11:47:30 -06:00
Corey Oordt
addb0e410f defaulting the url prefix to / if it can't find the category tree 2015-06-09 15:23:43 -05:00
Brent O'Connor
74cc9f8346 Fixed the RemovedInDjango19Warning deprecation warning 2015-06-09 15:17:47 -05:00
Brent O'Connor
58abcc7401 Renamed get_query_set to get_queryset to get Django categories to work in Django 1.7. I'm not sure of a good way to make this work in Django 1.6. 2015-06-09 15:17:47 -05:00
winniehell
89c7333306 i18n 2013-03-20 06:54:34 -05:00
Corey Oordt
123459eec1 To satisfy a very demanding and owly jsoa, I removed an unused variable. :P 2012-08-28 08:16:00 -05:00
Corey Oordt
0d167164a1 Updating the signal registration to check for south first and fail silently 2012-08-28 08:00:29 -05:00
Corey Oordt
c522ae6d96 Moved the registration of the signal to models.py where it will get executed 2012-08-28 06:57:22 -05:00
Corey Oordt
0d254eca63 pep8 cleanup 2012-07-12 19:24:55 -04:00
Martin Matusiak
97df7427a9 use ugettext_lazy 2012-05-11 14:07:01 +02:00
Corey Oordt
768291d720 Moved the base models to base.py and did a few PEP8 cleanups 2012-02-15 08:54:33 -05:00
Corey Oordt
fdf968fb6e Extracted a base class for categories to allow other apps to make their own independent category-style models.
* Updated for django-mptt 0.5.2
* Fixed typo in the CategoryRelation field in that the foreign key is called 'story'
* Made the order field non-null and default to 0
* Changed the parent foreign key a TreeForeignKey (for 0.5.2)
* Changed requirements to mptt>=0.5.2
* Added a migration for model changes.
2012-02-15 08:54:33 -05:00
Jose Soares
07f698c638 Moved the editor app so its inside the categories app 2012-01-11 15:22:29 -05:00
Corey Oordt
416898d2a5 Changed behavior of (de)activating an item within the change form:
Instead of changing all descendants' active status to the current item's, it will only change the descendants' active status if the item is False.

As it makes sense to have an item active, but its children inactive, it doesn't make sense that an item is inactive, but its descendants are active.

This doesn't change the activate/deactivate admin actions. They will always  affect an item and its descendants.
2012-01-04 23:53:50 -05:00
Corey Oordt
6f6241c264 Altered the field type of the alternate url field from URL to Char. This allows relative urls, instead of full urls.
Added a migration in case the database complains. Really doesn't do anything on that level
2012-01-03 09:18:10 -05:00
Corey Oordt
586fefed79 Added a version check to support Django 1.1 in a core Django function 2011-10-14 13:50:11 -04:00
Corey Oordt
2a0b4768a3 Fixes a bug trying to set active on decendants before object is saved. 2011-08-29 06:39:00 -04:00
Corey Oordt
3e8a10ad4e Added an active flag for models 2011-08-22 09:51:11 -04:00
Corey Oordt
cedd54e85d Added an alternate url field to the model. 2011-08-01 09:09:34 -04:00
Corey Oordt
64dd94aa43 Ah, the wonders of copying and pasting. Fixed some errors resulting from it. 2011-05-12 06:55:08 -04:00
Corey Oordt
32b5451c15 Clean up per pylint. 2011-05-12 06:45:36 -04:00
Corey Oordt
efe3cdd06b Refactored the thumbnail from imagefield to filefield.
Why? ImageField causes hits to storage to fill out certain fields. Added a storage class and width/height fields so it is possible to scale the thumbnails and store them somewhere besides the filesystem.
2011-05-11 09:01:33 -04:00
Corey Oordt
0fa7402f1d Added some specialized functions for relations 2011-05-11 07:08:06 -04:00
Evan Culver
1ac5ae0a09 Add optional thumbnail model field. 2011-05-08 08:07:47 +08:00
Corey Oordt
4fbed625c4 Unstashing the previous changes 2010-12-12 13:15:03 -05:00
Corey Oordt
a240fef950 Added a Meta class for proper plural naming 2010-12-10 06:53:50 -05:00
Josh Ourisman
04da4c0bdd modified Category model to work with django-mptt 0.4 2010-10-23 20:31:17 -04:00
Justin Quick
ab6b48c9d9 safe mptt registration 2010-04-29 11:28:59 -04:00
Corey Oordt
9e1717f3f7 Added generic relation stuff into categories 2010-04-23 11:37:18 -04:00
Corey Oordt
031c32854c Added metadata to the model for seo stuff 2010-04-22 14:31:38 -04:00
Corey Oordt
f6db9f2006 Merge branch 'master' of http://opensource.washingtontimes.com/git/public/django-categories 2010-04-05 13:02:59 -04:00
Justin Quick
06d335238a added missing templates for category traversal 2010-02-26 08:35:05 -05:00
Corey Oordt
7dfb2da267 Removed the special many2many models. The user interface was just too odd to implement. 2010-02-12 12:13:12 -05:00
Justin Quick
0ca025d763 attempt at hacking a through table (field errors) 2010-02-02 10:40:51 -05:00
Corey Oordt
2f3b1dacbf Removed the permalink decorator to make the absoluteurl work 2009-10-13 05:06:37 -04:00
Corey Oordt
e1da454bee Fixed the get_absolute_url for the Categories model and fixed up the view as well 2009-10-06 09:28:16 -04:00
Corey Oordt
598a418a0f Added a description field 2009-10-06 08:09:04 -04:00
Corey Oordt
01c6cf38c5 Getting the admin interface working 2009-08-27 16:22:09 -04:00
Corey Oordt
fc2ae672e6 Made sure the models and admin looked right and worked with Stories 2009-07-08 09:01:27 -04:00