Merge branch 'embed-widget' of git://github.com/lapilofu/philo into develop
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Fri, 8 Jul 2011 22:13:18 +0000 (18:13 -0400)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Fri, 8 Jul 2011 22:13:18 +0000 (18:13 -0400)
* 'embed-widget' of git://github.com/lapilofu/philo:
  Updated the grappelli styles to override the default styles.
  Updated styles to work in the original admin. Updated the javascript to overload the dismissAddAnotherPopup function as well.
  Made the embed widget javascript work by overloading the dismissRelatedLookupPopup function.
  Made the embed widget automatically generate URLs based on the ADMIN_URL global, which is provided by Grappelli. Unfortunately, this introduces a dependency on Grappelli. I'll return to this branch at a later date when my thinking is clearer.
  Initial work on a widget for TemplateFields that allows javascript selection of an object to embed.

1  2 
philo/models/fields/__init__.py

@@@ -7,8 -7,8 +7,9 @@@ from django.utils.text import capfirs
  from django.utils.translation import ugettext_lazy as _
  
  from philo.forms.fields import JSONFormField
 +from philo.utils.registry import RegistryIterator
  from philo.validators import TemplateValidator, json_validator
+ from philo.forms.widgets import EmbedWidget
  #from philo.models.fields.entities import *