Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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: http://code.djangoproject.com/svn/django/trunk@697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 60bb739d9ef6a94cb83d769c4696ea9838f2dbcb 1 parent fa8662a
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/meta/__init__.py
View
2  django/core/meta/__init__.py
@@ -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.
Something went wrong with that request. Please try again.