Skip to content
Browse files

There was actually a reason I made that change the first time. :P

  • Loading branch information...
1 parent 755e8f5 commit 70ef382a9935eedff814104f20ff91145e9eeaef @matthewd matthewd committed Sep 29, 2006
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/auto_admin_django_theme.rb
View
6 lib/auto_admin_django_theme.rb
@@ -100,8 +100,10 @@ def fieldset(style, title=nil)
super
end
def table_cell(field_type, field_name, options)
- column = model.find_column(field_name)
- assoc = model.reflect_on_association(field_name.to_sym)
+ if field_name
+ column = model.find_column(field_name)
+ assoc = model.reflect_on_association(field_name.to_sym)
+ end
klass = assoc ? assoc.klass.name.underscore :
column ? column.type :

0 comments on commit 70ef382

Please sign in to comment.
Something went wrong with that request. Please try again.