Browse files

Fixed #558 -- Subclassed models now use their own class name (or expl…

…icitly defined module_name) as the module_name, not the parent's module_name

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent fa8662a commit 60bb739d9ef6a94cb83d769c4696ea9838f2dbcb @adrianholovaty adrianholovaty committed Sep 26, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/meta/
@@ -430,7 +430,7 @@ def __new__(cls, name, bases, attrs):
# Pass any Options overrides to the base's Options instance, and
# simultaneously remove them from attrs. When this is done, attrs
# will be a dictionary of custom methods, plus __module__.
- meta_overrides = {'fields': fields}
+ meta_overrides = {'fields': fields, 'module_name': name.lower() + 's'}
for k, v in meta_attrs.items():
if not callable(v) and k != '__module__':
meta_overrides[k] = meta_attrs.pop(k)

0 comments on commit 60bb739

Please sign in to comment.