Skip to content
This repository was archived by the owner on Jun 17, 2018. It is now read-only.

Django 1.7b2 Compatibility #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tagging/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
class TagAdmin(admin.ModelAdmin):
form = TagAdminForm

class Meta:
fields = '__all__'

admin.site.register(TaggedItem)
admin.site.register(Tag, TagAdmin)

Expand Down
1 change: 1 addition & 0 deletions tagging/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
class TagAdminForm(forms.ModelForm):
class Meta:
model = Tag
fields = '__all__'

def clean_name(self):
value = self.cleaned_data['name']
Expand Down
2 changes: 1 addition & 1 deletion tagging/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def usage_for_queryset(self, queryset, counts=False, min_count=None):
compiler = queryset.query.get_compiler(using='default')
extra_joins = ' '.join(compiler.get_from_clause()[0][1:])
where, params = queryset.query.where.as_sql(
compiler.quote_name_unless_alias, compiler.connection
compiler, compiler.connection
)
else:
# Django pre-1.2
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading