Commit graph

33 commits

Author SHA1 Message Date
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
Corey Oordt
8d48c8c042 Making sure everything is in the repo 2009-07-07 07:06:36 -04:00
Corey Oordt
e39e575ce0 Initial import 2009-07-02 20:23:08 -04:00