Skip to content

Commit

Permalink
Re-added wrongly removed code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez committed Sep 29, 2010
1 parent 93b4f59 commit 6d4e25d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chronograph/admin.py
Expand Up @@ -175,6 +175,8 @@ def has_add_permission(self, request):
return False

def formfield_for_dbfield(self, db_field, **kwargs):
request = kwargs.pop("request", None)

if isinstance(db_field, models.TextField):
kwargs['widget'] = HTMLWidget()
return db_field.formfield(**kwargs)
Expand Down

0 comments on commit 6d4e25d

Please sign in to comment.