Commit graph

508 commits

Author SHA1 Message Date
arthur
830bffcf11 Using TextField widget for GenericIPAddressField according to django-floppyforms documentation
http://django-floppyforms.readthedocs.io/en/latest/widgets.html
2016-05-19 18:16:01 +02:00
arthur
0b923103f3 Replace IPAddressField with GenericIPAddressField 2016-05-19 17:05:21 +02:00
arthur
e7df67e150 Update create_view_permission and move signal to AppConfig 2016-05-08 02:22:49 +02:00
arthur
babe7a70c7 Optimise imports 2016-05-08 01:31:16 +02:00
arthur
23f7f9479a create a djadmin2_site in djadmin2/site.py to make it work in django 1.9 2016-05-08 01:29:17 +02:00
arthur
754f5dab56 Replace post_sync signal with post_migrate 2016-05-08 00:54:04 +02:00
arthur
f223b85422 Rename AdminModel2Mixin to Admin2ModelMixin 2016-05-08 00:25:12 +02:00
arthur
92e7d52c47 rename ctype to c_type (flake8 on python2.7) 2016-05-08 00:18:16 +02:00
arthur
cb91aabcf4 Update permission.py 2016-05-08 00:12:53 +02:00
arthur
54f710055a Add migrations but not use them in test for now 2016-05-07 23:59:55 +02:00
arthur
e7a40e1806 Update url patterns 2016-05-07 23:57:53 +02:00
arthur
c532393b97 Fix flake8 errors 2016-05-07 23:28:30 +02:00
arthur
5849d80dcb Update django rest framework 2016-05-07 23:26:48 +02:00
arthur
f3ff443373 Fix flake8 errors 2016-05-07 22:59:15 +02:00
arthur
77fd9401bb Add field_name attribute for build_date_filter 2016-05-07 21:09:58 +02:00
arthur
9872521f6f Fix collector in BaseListAction who generate bug when trying to delete multiple object from action list 2016-05-07 21:09:22 +02:00
arthur
3fbc396fa2 Fix slice has been taken issue on _format_days, _format_months and _format_years 2016-05-07 21:07:51 +02:00
arthur
5f9707e467 Delete migration for tox to work 2016-05-07 20:28:04 +02:00
arthur
599ec2d236 Add migrations 2016-05-07 19:44:00 +02:00
Hiroaki Nakamura
25679c7fa3 Use static template tag instead of STATIC_URL 2015-08-21 10:27:35 +09:00
Kamil Gałuszka
d69729e52f Merge pull request #417 from montiniz/py3-fix
Raise syntax no longer accepts comma-separated arguments in python3
2015-03-30 22:53:44 +02:00
montiniz
03dea3c00b Fixed datetime_renderer to be compatible with django 1.8. Django ticket #23466 2015-03-30 12:50:08 -05:00
montiniz
8a51b321f3 django 1.8 fixes 2015-03-30 12:40:13 -05:00
montiniz
1802fce73d Added tests for ModelAdmin.get_urls 2015-03-21 12:55:06 -05:00
montiniz
de3905cd4b Raise syntax no longer accepts comma-separated arguments in python3 2015-03-21 12:48:10 -05:00
Koding
a51eb82f6b Fix some Django 1.8 compatibility issues. 2015-03-21 16:26:12 +00:00
Andrews Medina
0649044717 Merge pull request #391 from douglasmiranda/fix-empty-form-message
Fix: "there are no" instead "there isn't" on the empty form message.
2015-01-10 18:43:13 -02:00
Andrews Medina
ff3cbd413a Merge pull request #386 from tyrion/patch-2
Fixed ModelAdminBase2 to allow overriding existent views.
2015-01-10 18:35:31 -02:00
Andrews Medina
b089a4027c Merge pull request #384 from tyrion/patch-1
"djadmin2theme_default" should not be hard-coded in templatetags.
2015-01-10 18:30:46 -02:00
Kamil Gałuszka
cde4de20c8 fixes to review by @andrewsmedina #403 2015-01-08 08:41:41 +01:00
Kamil Gałuszka
84ae23b903 fix problems with permissions 2015-01-06 18:29:29 +01:00
montiniz
a6e7755a55 Fixes for compatibility with python3. 2014-11-26 09:42:17 -06:00
Kamil Gałuszka
dda1211f43 small fix compatybility for test and dj1.7 2014-10-10 22:19:05 -05:00
Kamil Gałuszka
836d85668e only 28 failing test on py3 :) 2014-10-10 22:19:05 -05:00
Kamil Gałuszka
a20c98d6d4 fixing next py3 problems... only 57 failing tests left. 2014-10-10 22:19:04 -05:00
Kamil Gałuszka
e74c603bda fix for type in filters.py 2014-10-10 22:19:04 -05:00
Kamil Gałuszka
6144278a9e fix for py3 basestring problem with six 2014-10-10 22:19:04 -05:00
Kamil Gałuszka
03ebd91f78 fixing django 1.7 errors 2014-10-10 22:19:04 -05:00
Kamil Gałuszka
2f43a66055 fixing possible errors on pypy2 2014-10-10 22:19:03 -05:00
Kamil Gałuszka
84bf9f2073 fixing test with modelforms 2014-10-10 22:19:03 -05:00
Kamil Gałuszka
b341d763f0 many fixes to django-admin2 with py3
and django 1.7 compatybility
2014-10-10 22:19:02 -05:00
Mosson, Andrew
5ff619979f fix for django-braces>=1.4.0
braces 1.3 views exported AccessMixin
in braces 1.4 this was moved views._access and not exported in views
not sure if this was the intent of braces or an oversight
if intent - should look at AccessMixin vs. using a more specific mixin

tested against django-braces 1.3.1 and django-braces 1.4.0
2014-06-19 10:12:13 -07:00
Daniel Greenfeld
2079a7be9b bump to 0.6.1 2014-02-26 10:21:56 -08:00
Douglas Miranda
af82d2b9b1 Fix: "there are no" instead "there isn't" on the empty form message. 2013-12-17 23:43:49 -03:00
Germano Gabbianelli
606db2fe7a Added tests for pull-request #386
1. Custom views should be prepended to the 'views' list, otherwise they
   could be shadowed by views of the superclass.
2. Custom views should not be added to the superclass 'views' list.
   Instead a new list should be created and assigned to the class.
2013-12-05 12:48:55 +01:00
Germano Gabbianelli
4c35c506a7 Fixed ModelAdminBase2 to allow overriding existent views. 2013-12-03 11:34:05 +01:00
Germano Gabbianelli
4a4b11176e "djadmin2theme_default" should not be hard-coded in templatetags. 2013-12-03 11:33:39 +01:00
Gregor Müllegger
4072d4c009 Fixing failing tests, that only occured on Travis. You cannot use a plane, generic View in the Admin since it always needs to be a model based one. At least unless you overwrite the get_*_kwargs method. 2013-11-28 18:11:12 +01:00
Gregor Müllegger
34b98fb8ac Better error messages for admin views that fail to instantiate. 2013-11-28 18:11:04 +01:00
Gregor Müllegger
ca86c60499 Django 1.6 changed the MultiWidget.needs_multipart_form attribute into a property. We didn't plan for that in floppify code yet. We check now for properties which makes it compatible with Django 1.6 and more futureproof. Part of a Fix for #387. 2013-11-28 13:12:50 +01:00
Gregor Müllegger
d9530074e4 Django 1.6 changed the widgets its using for IntegerFields, this needed adjustment in the floppifying rule for those fields. Part of a Fix for #387. 2013-11-28 13:12:50 +01:00
Douglas Miranda
2f8f890ce0 A nice margin for a nice message. :) 2013-09-27 00:52:51 -04:00
Douglas Miranda
b169d28653 Show a nice message if the have no visible fields. 2013-09-27 00:52:18 -04:00
Douglas Miranda
ff721a2ef6 Adding View Descriptions for "registry" and "app_verbose_names". 2013-09-24 03:27:38 -04:00
Daniel Greenfeld
a7feb05ca4 bump to 0.6.0rc1 2013-09-12 16:44:33 +02:00
Daniel Greenfeld
cfce0f4afb Add @yarbelk to authors and update the history file 2013-09-11 22:13:00 +02:00
yarbelk
690401d604 Fix missing enctype="multipart/form-data" when needed
- add app example.files with tests, based on example2.
- add check in base update template which checks if
  form.is_multitype and adds the encoding for it
- update gitignore to ignore the uploaded media folder
- add test to blog to ensure that the create form is not
  multipart encoded
2013-09-11 22:20:38 +08:00
Douglas Miranda
087a918542 fix TypeError - the right way () 2013-08-26 20:20:09 -04:00
Daniel Greenfeld
33b83ead5f Merge pull request #366 from douglasmiranda/implementing-app-verbose-name
Implementing "app verbose name"
2013-08-13 16:51:09 -07:00
Douglas Miranda
cfba14384e Tests for the "app verbose name". 2013-08-05 03:39:17 -04:00
Douglas Miranda
08f38c26c2 Showing the app verbose names on the templates. 2013-08-05 03:36:37 -04:00
Douglas Miranda
7f830c8aeb Registering and making the app verbose names accessible into the views. 2013-08-05 03:35:03 -04:00
Kevin Diale
35cb0bcc75 "only_selected" flag exists to specify whether it should affect the
whole queryset or just those that are selected.
2013-08-02 13:58:57 -04:00
Daniel Greenfeld
fa86f85afc Remove accidental dependency on django.contrib.admin 2013-08-02 12:52:38 +02:00
Kevin Diale
1aa4ee36d6 Implemented ordering, tests in the next commit. 2013-08-01 12:00:03 -04:00
Daniel Greenfeld
7c3bc1e0b0 merge 2013-08-01 12:39:21 +02:00
Daniel Greenfeld
68cc955fce Merge branch 'admin-date-hierarchy' of git://github.com/powersurge360/django-admin2 into powersurge360-admin-date-hierarchy 2013-08-01 12:31:38 +02:00
Daniel Greenfeld
3b0526b335 Merge branch 'develop' of github.com:pydanny/django-admin2 into develop 2013-08-01 12:28:39 +02:00
Kevin Diale
03261fa461 Should be ready to go! 2013-07-31 17:43:05 -04:00
Kevin Diale
bb127c9483 Added unit tests. 2013-07-31 17:31:23 -04:00
Kevin Diale
bab18c97c1 Interface is most of the way there. 2013-07-31 14:58:08 -04:00
Kevin Diale
966e549ace Basic interface done. 2013-07-31 12:57:48 -04:00
the5fire
6f531ea09f Test for the ModelAdmin2 get_index_kwargs 2013-07-31 07:17:07 +08:00
Kevin Diale
8dc0821539 Left in a wee bit of debugging code. 2013-07-30 17:20:27 -04:00
Kevin Diale
29eaa661d5 Drilling down works on a functional level. Gotta set up interface and
tests.

On a related note, TAKE THAT DJANGO FILTERS.
2013-07-30 16:28:24 -04:00
Kevin Diale
6ff47746df Added in actions_selection_counter, will add tests/polish next commit. 2013-07-29 14:48:05 -04:00
the5fire
e8c5e9ec52 add admin model list pagination template 2013-07-28 11:19:05 +08:00
the5fire
ee0c1b0031 fix list_per_page can't enable in model list view 2013-07-28 10:26:08 +08:00
Andrews Medina
3c7fc0fc0e Merge branch 'develop' into admin_view
Conflicts:
	djadmin2/types.py
2013-07-26 17:55:55 -03:00
Andrews Medina
26ba68115f Using six to set the ModelAdminBase2 metaclass. 2013-07-26 17:41:58 -03:00
Chris Jones
4959a095c4 fix merge error. 2013-07-18 17:44:19 -07:00
Kenneth Love
3844a952c0 merge 2013-07-18 17:41:33 -07:00
Kenneth Love
738e3a9dd8 template changes 2013-07-18 17:40:54 -07:00
Chris Jones
e7f8170237 Ooooooooo pretty. 2013-07-18 17:33:19 -07:00
Kenneth Love
af11cb012e Merge branch 'fix-history' of github.com:brack3t/django-admin2 into fix-history 2013-07-18 17:31:11 -07:00
Kenneth Love
e5f1940f3e action_type property 2013-07-18 17:31:08 -07:00
Chris Jones
57ef2a428c Nicer to look at. 2013-07-18 17:30:41 -07:00
Chris Jones
69f2a357f8 Why don't you PEP your 8! Add in change messages. 2013-07-18 17:23:48 -07:00
Kenneth Love
52c337a72c force_text for object_repr and condition on history link 2013-07-18 17:16:07 -07:00
Kenneth Love
acae0a2620 icons 2013-07-18 17:02:40 -07:00
Kenneth Love
99ae00a0ae show user that performed action 2013-07-18 16:56:08 -07:00
Kenneth Love
802265b60f Merge branch 'fix-history' of github.com:brack3t/django-admin2 into fix-history 2013-07-18 16:54:26 -07:00
Kenneth Love
ee2ca9feff template updates 2013-07-18 16:54:22 -07:00
Chris Jones
ee1c90cd9f Working model history view. 2013-07-18 16:51:16 -07:00
Kenneth Love
a7951353a8 Merge branch 'fix-history' of github.com:brack3t/django-admin2 into fix-history 2013-07-18 16:38:20 -07:00
Kenneth Love
7dbf50426f model_history template 2013-07-18 16:38:13 -07:00
Chris Jones
d62b612583 nevermind. 2013-07-18 16:38:00 -07:00
Chris Jones
f7ef575709 Should be a detail view. 2013-07-18 16:37:18 -07:00
Chris Jones
82d9e7ae65 PEP8 love. 2013-07-18 16:36:31 -07:00
Chris Jones
4089ad4aab PEP8 all the things. Add in new history url. 2013-07-18 16:30:40 -07:00