qz267 / django-google-analytics

Automatically exported from code.google.com/p/django-google-analytics
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

admin.py for Django 1.0 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The attached admin.py enables inline editing for the Analytics entities in
the Django 1.0 admin. Note that it is a bit ugly, but currently the only
way of adding an inline to an existing ModelAdmin. Let's hope the Django
devs come up with better ways. :-)

Original issue reported on code.google.com by joost.cassee on 5 Aug 2008 at 8:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch!

I would just add a test on GOOGLE_ANALYTICS_MODEL for the sake of the second 
mode :)

from django.conf import settings
if getattr(settings, 'GOOGLE_ANALYTICS_MODEL', False):
   <admin.py>

Original comment by lepetitdormeur on 19 Oct 2008 at 5:47

GoogleCodeExporter commented 9 years ago
Damn, I should have started here .. I've created a similar admin.py, but I also
patched the model.

<3 Open Source !

Cheers

Original comment by hainea...@gmail.com on 17 Jul 2009 at 10:16

Attachments: