changed bio to biography

This commit is contained in:
Zak Timson 2017-08-17 14:22:50 -04:00
parent 28be1e3c7e
commit 2e9bfb5813
3 changed files with 4 additions and 4 deletions

View File

@ -10,6 +10,6 @@ admin.site.register(Position)
class MemberAdmin(admin.ModelAdmin):
list_display = ('name', 'position', 'phone_formatted', 'email', 'front_page', 'joined', 'thumbnail')
list_filter = ['position', 'front_page', 'joined']
search_fields = ('bio', 'email', 'joined', 'name', 'position', 'website', 'phone', 'phone_formatted')
fields = ('image_preview', 'image', 'name', 'position', 'bio', 'phone', 'email', 'website', 'front_page', 'joined')
search_fields = ('biography', 'email', 'joined', 'name', 'position', 'website', 'phone', 'phone_formatted')
fields = ('image_preview', 'image', 'name', 'position', 'biography', 'phone', 'email', 'website', 'front_page', 'joined')
readonly_fields = ('image_preview',)

View File

@ -10,7 +10,7 @@ class Position(models.Model):
class Attorney(models.Model):
bio = models.TextField(blank=True, null=True)
biography = models.TextField(blank=True, null=True)
email = models.CharField(max_length=255, blank=True, null=True)
front_page = models.BooleanField(default=False)
image = models.ImageField(upload_to='portraits', default='silhouette.png')

View File

@ -15,7 +15,7 @@
<div class="col-lg-6 pt-3 bg-light-blue">
<div class="col-lg-6">
<h2 class="d-none d-lg-inline text-dark-primary">{{ attorney.name }}</h2>
<p>{{ attorney.bio }}</p>
<p>{{ attorney.biography }}</p>
</div>
</div>
</div>