We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8463b41 commit 72e8f75Copy full SHA for 72e8f75
junction/profiles/admin.py
@@ -3,7 +3,7 @@
3
4
5
class ProfileAdmin(admin.ModelAdmin):
6
- list_display = ('__unicode__', 'city', 'contact_no')
7
- search_fields = ('contact_no', 'city')
+ list_display = ('__unicode__', 'city', 'contact_no')
+ search_fields = ('contact_no', 'city')
8
9
admin.site.register(Profile, ProfileAdmin)
junction/profiles/forms.py
@@ -5,5 +5,5 @@
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
- fields = ['city', 'contact_no',]
- exclude = ['user',]
+ fields = ['city', 'contact_no', ]
+ exclude = ['user', ]
0 commit comments