Wykres commitów

11 Commity (98de86f49dfc68559dbd4539dcc9e409bf7f0a91)

Autor SHA1 Wiadomość Data
Jaap Joris Vens 98de86f49d Blackify everything 2021-07-04 01:59:48 +02:00
Jaap Joris Vens 11fa5ba39b Changed has_perms() to has_perm(), because the former always returns False... 2020-05-20 18:03:53 +02:00
Jaap Joris Vens 4a8c804452 Better form handling 2020-03-29 01:54:56 +01:00
Jaap Joris Vens e9fddf8a2e Fix invalid form bug (in an ugly way...) 2020-03-25 16:52:16 +01:00
Jaap Joris Vens c552f52e46 Various small improvements 2020-03-24 15:32:12 +01:00
Jaap Joris Vens 0e221ccf33 The dependency on swapper has been replaced with an incredibly simply
"registry". Client projects register their models and views during import
time with a decorator. The cms views use the registered classes to generate
pages and forms.

Furthermore, the example application now combines the app and the project in
one, inspired by this line in the Django documentation:

    There’s no restriction that a project package can’t also be considered
    an application and have models, etc.
2020-03-22 12:46:10 +01:00
Jaap Joris Vens 98b1a61af1 New template tag: {% edit %} which generates a simple edit link for the
current section
2020-03-21 20:24:07 +01:00
Jaap Joris Vens 3cc1f9ec08 New version! Modelled after Django's admin application, simplecms now allows
you to define everything related to it in the file 'cms.py'. No more
inherited proxy models and no more migrations every time you add/remove a
section type! In fact, the dependency on django-polymorphic has completely
been removed!

The example project has been updated and should get you started.
Documentation will be coming soon!
2020-03-21 18:49:41 +01:00
Jaap Joris Vens 09f03b6866 Even better permissions. Seems that they get swapped automatically! 2020-03-20 14:32:53 +01:00
Jaap Joris Vens ddbd220527 no exceptions 2020-02-13 20:37:38 +01:00
Jaap Joris Vens 5f5f303187 A new templatetag 'includesection' now renders a section with its own
context, as provided by the polymorphic subsection's registered view.

Also, I'm trying to move all the website-related cruft from cms into the
example project, so that only the Page and Section models with their own
"admin" views will remain.
2020-01-05 03:36:23 +01:00