d1ffuz0r
17bc5acecf
use django-braces for login required views
2013-05-31 06:20:15 +07:00
d1ffuz0r
8ae0644fb9
#101 #103 added change password, logout views
2013-05-31 06:19:33 +07:00
Daniel Greenfeld
9acdf9e2f8
fixes #155 , which is moving models.py to types.py. Using admins.py as an alias for the old models.py module
2013-05-30 12:33:00 +02:00
Daniel Greenfeld
096267c674
New immutable object type that is properly frozen. Part of #155
2013-05-30 12:11:49 +02:00
Daniel Greenfeld
b2fb02b976
New immutable object type that is properly frozen. Part of #155
2013-05-30 12:11:19 +02:00
Daniel Greenfeld
30d1abe5d4
PEP-8 work
2013-05-30 11:35:58 +02:00
Ben Tappin
06302a7ed6
Tweak NestedObjects (and tests) comments.
2013-05-29 14:10:56 +01:00
Ben Tappin
f4f400734c
Use utils.model_options() in views and change utils import.
2013-05-29 14:09:26 +01:00
Ben Tappin
65de6f148f
Use utils.model_options().
2013-05-29 13:50:07 +01:00
Ben Tappin
11f193ffc9
UI improvements when deleting objects.
...
Shows nested child objects that will be deleted when deleting a single object or multiple objects.
Includes some hacky tests for NestedObjects in the example app.
2013-05-29 12:38:32 +01:00
Daniel Greenfeld
5fcccb6183
Remove print statement. Fixes #143
2013-05-29 12:17:08 +02:00
Gregor Müllegger
b54048c744
Re-wording the variable 'backend' based on @RaphaelKimmig's code review.
2013-05-29 11:00:59 +02:00
Gregor Müllegger
c0a3df680c
Fix permission denied errors for API views.
2013-05-29 10:47:45 +02:00
Gregor Müllegger
42d89a7585
Moving permission checking from AdminModel2Mixin to PermissionMixin were it belongs.
2013-05-29 10:47:45 +02:00
Gregor Müllegger
2771d160a7
Using new permission handling in templates.
2013-05-29 10:47:45 +02:00
Gregor Müllegger
8c88362197
Removing old permission handling.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
d0635b79c3
Adding a IsSuperuserPermission class.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
2adabfe695
Re-writing the docs about the permission handling.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
02a68faadd
Adding more information to the docstring of the template permission handler.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
635bbca553
Adding |for_view filter to bind permissions for a view name.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
9ce77ae572
Adding possibility to traverse permissions by admin name.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
2aca9df7e2
Adding possibility to swap model admin that is checked for permissions in the template.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
c6a11efca8
Adding ability to check for permissions of any registered model admin in the templates.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
e7cadd5ab5
Allow ModelAdmin2 instances to have names.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
3b9aca672f
Adding documentation about how to use permissions in the template.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
65d54083ce
Adding reference documentation for permission handling.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
2b268eb089
Setting up autodoc for the docs.
...
For this to work you need to install sphinx in your virtualenv. It's added to
the requirements.txt so just run: pip install -r requirements.txt
2013-05-29 10:44:22 +02:00
Gregor Müllegger
ab778191c6
Adding the ability to check for permissions in templates.
2013-05-29 10:44:22 +02:00
Gregor Müllegger
324cdbaa17
Moving permission logic of views into its own mixin. Also allow to check permission on other views via the PermissionMixin.
2013-05-29 10:43:09 +02:00
Gregor Müllegger
0c7615b733
Implementing a class-based permission handling.
2013-05-29 10:43:09 +02:00
Daniel Greenfeld
3704fd5441
Merge branch 'breadcrumbs' of git://github.com/AndrewIngram/django-admin2 into AndrewIngram-breadcrumbs
2013-05-28 22:00:44 +02:00
Andrew Ingram
23b0389c1a
Rename app-index view to app_index
2013-05-28 13:24:18 +01:00
Andrew Ingram
3bb555fb56
add missing test for utils.model_app_label
2013-05-28 13:24:02 +01:00
Daniel Greenfeld
9c694a9f1c
Update AUTHORS.rst
2013-05-27 23:24:04 +02:00
Daniel Greenfeld
36cdb246cc
Update AUTHORS.rst
2013-05-27 06:47:00 +02:00
Daniel Greenfeld
e7ad2efe70
Merge pull request #152 from akaptur/remove-python-command-with-python-prompt
...
Remove 'python -c'
2013-05-26 21:40:48 -07:00
Allison Kaptur
58ffe40eb9
Remove 'python -c'
...
You should have either `python -c` or '>>>', but not both. I'm not sure whether "$ python -c 'import this'" or '>>> import this' is better, but the current version is definitely wrong.
2013-05-26 19:20:02 -04:00
Andrew Ingram
9f41c3f56e
Initial stab at breadcrumbs
...
There's currently a lot of copy-pasting of breadcrumbs, this can be revisited once we have a better understanding of how we're going to handle navigation.
I've also tried to make template context variables more logical and consistent throughout.
2013-05-26 01:55:43 +01:00
Daniel Greenfeld
a94416d99e
Merge pull request #149 from AndrewIngram/l18n
...
Template internationalization
2013-05-25 14:26:00 -07:00
Daniel Greenfeld
011560d28a
Merge pull request #148 from mrben/admin2-tags-tests
...
Add tests for admin2 templatetags and fix bug.
2013-05-25 14:25:11 -07:00
Andrew Ingram
a4d77a9309
Template internationalization
2013-05-25 18:44:48 +01:00
Ben Tappin
c79f53bb02
Add tests for admin2 templatetags and fix bug.
2013-05-25 16:45:26 +01:00
Daniel Greenfeld
906b8cbf4e
Adding endline to bump things forward
2013-05-24 20:48:43 +02:00
Daniel Greenfeld
3b4ce17142
Adding in note about the model_admin immutable issue
2013-05-24 20:47:38 +02:00
Daniel Greenfeld
99204be715
Added tests for djadmin.utils
2013-05-24 16:22:54 +02:00
Daniel Greenfeld
7abbb94ddd
Add Ben Tapin to authors
2013-05-24 13:25:02 +02:00
Ben Tappin
30cacb7569
Use PK instead of ID in the model list view and template.
2013-05-24 12:06:35 +01:00
Daniel Greenfeld
0236a5cc07
small correction on model naming
2013-05-23 22:34:15 +02:00
Daniel Greenfeld
a3eea0aaf9
Merge branch 'bugfix/delete-action-message-display' of git://github.com/chrislawlor/django-admin2 into chrislawlor-bugfix/delete-action-message-display
2013-05-23 22:30:24 +02:00
Daniel Greenfeld
1e1f101397
Merge pull request #135 from gregmuellegger/runtests-args
...
Allow runtests.py to take positional arguments to specify only a subset of tests to run.
2013-05-23 13:27:16 -07:00