Skip to content

Commit 72e8f75

Browse files
flake8 fixes
1 parent 8463b41 commit 72e8f75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

junction/profiles/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
class ProfileAdmin(admin.ModelAdmin):
6-
list_display = ('__unicode__', 'city', 'contact_no')
7-
search_fields = ('contact_no', 'city')
6+
list_display = ('__unicode__', 'city', 'contact_no')
7+
search_fields = ('contact_no', 'city')
88

99
admin.site.register(Profile, ProfileAdmin)

junction/profiles/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
class ProfileForm(forms.ModelForm):
66
class Meta:
77
model = Profile
8-
fields = ['city', 'contact_no',]
9-
exclude = ['user',]
8+
fields = ['city', 'contact_no', ]
9+
exclude = ['user', ]

0 commit comments

Comments
 (0)