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
Daniel Greenfeld
dca4d849d7
Merge branch 'floppify-auth-forms' of git://github.com/gregmuellegger/django-admin2 into gregmuellegger-floppify-auth-forms
2013-05-23 22:25:16 +02:00
Gregor Müllegger
5b482a96d0
Adding docs for optional runtests.py arguments.
2013-05-23 22:18:12 +02:00
Gregor Müllegger
d4eb1e4bd3
Allow runtests.py to take positional arguments to specify only a subset of tests that should be run.
2013-05-23 22:04:25 +02:00
Chris Lawlor
396f49665e
Fixes message display after action handling.
...
Calls unicode to force encoding of object name to a localized
unicode string. Also fixes deleted object count by saving
len(queryset) to a local var before calling queryset.delete(), as
the len after queryset.delete() is always zero.
2013-05-23 15:37:50 -04:00
Gregor Müllegger
d10838c2ed
Don't copy input_type attribute from original widget when the floppyform widget has a much more appropriate HTML5 type.
2013-05-23 20:59:35 +02:00
Daniel Greenfeld
5f1f91167f
test cleanup
2013-05-23 20:22:44 +02:00
Gregor Müllegger
494b999922
Fixed #138 -- UserCreateForm and UserUpdateForm get floppified.
2013-05-23 20:16:19 +02:00
Daniel Greenfeld
0092325262
Used filters to present results of views better for #128
2013-05-23 20:11:04 +02:00
Daniel Greenfeld
611b34fd64
Wrapped all calls to model._meta with model_options function. fix #134
2013-05-23 20:00:14 +02:00
Daniel Greenfeld
d8409a2070
For #134 , this moves many independant functions to the utils module and begins conversion of naked ._meta use to using the utils.model_options wrapper
2013-05-23 19:46:03 +02:00
Daniel Greenfeld
638ae91756
PEP-8 work
2013-05-23 19:30:15 +02:00
Daniel Greenfeld
5129541154
merge and adding requirements for floppy-forms
2013-05-23 19:23:23 +02:00
Daniel Greenfeld
a62d3aceff
merge conflict resolutions
2013-05-23 13:01:27 +02:00
Gregor Müllegger
77fa844184
Also take form field into account when floppifying widgets. That way all specific floppyform widgets will be used for modelforms (like EmailInput, NumberInput, etc.).
2013-05-22 22:16:03 +02:00
Gregor Müllegger
984b6fb8d4
Using own modelform_factory to produce forms that are using floppyforms widgets. That allows better customization in the frontend.
2013-05-22 19:29:51 +02:00
Gregor Müllegger
188c12d647
Implementing a modelform_factory that takes care of converting all widgets on the modelform to floppyform widgets if possible.
2013-05-22 19:29:12 +02:00
Daniel Greenfeld
af96990275
Move mixins to their own directory so the apiviews aren't directly importing from views
2013-05-22 18:40:53 +02:00
Daniel Greenfeld
cd82aad51b
Merge pull request #132 from audreyr/cruft-cleanup
...
Remove unused Admin2Form class.
2013-05-22 09:01:10 -07:00
Daniel Greenfeld
fdddea7133
Add django-extra-views to dependencies to provide formset controls for contributors
2013-05-22 17:59:07 +02:00
Daniel Greenfeld
a5cb74fb63
Update django.contrib.admin reference file to provide reference for this pull request
2013-05-22 17:58:29 +02:00
Daniel Greenfeld
bb3d4712b9
Merge branch 'inline-formsets' of git://github.com/AndrewIngram/django-admin2 into AndrewIngram-inline-formsets
2013-05-22 17:47:17 +02:00
Daniel Greenfeld
3750288858
Adding to the reference
2013-05-22 17:37:02 +02:00
Peter Inglesby
ade92956d0
Handle actions by POSTing to ModelListView
2013-05-22 11:32:01 +01:00
Peter Inglesby
79e6dfad83
Add delete_selected action
2013-05-22 11:32:01 +01:00