Created
August 1, 2011 17:51
-
-
Save ChristinaMeno/1118629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/medley/abcs/extensions_admin.py b/medley/abcs/extensions_admin.py | |
index 90f3db9..2e9a7d4 100644 | |
--- a/medley/abcs/extensions_admin.py | |
+++ b/medley/abcs/extensions_admin.py | |
@@ -216,6 +216,7 @@ class MedleyBaseModelAdminForm(BaseModelForm): | |
def clean_primary_category(self): | |
primary_category = self.cleaned_data.get('primary_category') | |
+ return primary_category | |
if primary_category: | |
# For topic grids, primary_category is an int, otherwise it's a Category type | |
primary_category_id = primary_category | |
@@ -263,4 +264,4 @@ class MedleyBaseMetadataModelAdmin(MedleyBaseModelAdmin): | |
break | |
return qs.filter(source__isnull=True) | qs.filter(source__isnull=False, source__in=qualified_source_types) | |
- return qs | |
\ No newline at end of file | |
+ return qs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment