Browse files

Auto excludes and fields

  • Loading branch information...
1 parent 4e39d6e commit 4745faf5523d892bd4610b85a57ce8b69822ea0e @pydanny committed Aug 29, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 profiletools/forms.py
  2. +1 −1 setup.py
View
3 profiletools/forms.py
@@ -9,4 +9,5 @@ class ProfileForm(forms.ModelForm):
class Meta:
model = PROFILE_MODEL
- exclude = ('user', )
+ exclude = getattr(PROFILE_MODEL, "exclude", ('user', ))
+ fields = getattr(PROFILE_MODEL, "fields", ())
View
2 setup.py
@@ -10,7 +10,7 @@
description="Tools for Profile models in Django.",
long_description=LONG_DESCRIPTION,
classifiers=[
- "Development Status :: 3 - Alpha",
+ "Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"License :: OSI Approved :: BSD License",

0 comments on commit 4745faf

Please sign in to comment.