changed bio to biography
This commit is contained in:
parent
28be1e3c7e
commit
2e9bfb5813
@ -10,6 +10,6 @@ admin.site.register(Position)
|
|||||||
class MemberAdmin(admin.ModelAdmin):
|
class MemberAdmin(admin.ModelAdmin):
|
||||||
list_display = ('name', 'position', 'phone_formatted', 'email', 'front_page', 'joined', 'thumbnail')
|
list_display = ('name', 'position', 'phone_formatted', 'email', 'front_page', 'joined', 'thumbnail')
|
||||||
list_filter = ['position', 'front_page', 'joined']
|
list_filter = ['position', 'front_page', 'joined']
|
||||||
search_fields = ('bio', 'email', 'joined', 'name', 'position', 'website', 'phone', 'phone_formatted')
|
search_fields = ('biography', 'email', 'joined', 'name', 'position', 'website', 'phone', 'phone_formatted')
|
||||||
fields = ('image_preview', 'image', 'name', 'position', 'bio', 'phone', 'email', 'website', 'front_page', 'joined')
|
fields = ('image_preview', 'image', 'name', 'position', 'biography', 'phone', 'email', 'website', 'front_page', 'joined')
|
||||||
readonly_fields = ('image_preview',)
|
readonly_fields = ('image_preview',)
|
||||||
|
@ -10,7 +10,7 @@ class Position(models.Model):
|
|||||||
|
|
||||||
|
|
||||||
class Attorney(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)
|
email = models.CharField(max_length=255, blank=True, null=True)
|
||||||
front_page = models.BooleanField(default=False)
|
front_page = models.BooleanField(default=False)
|
||||||
image = models.ImageField(upload_to='portraits', default='silhouette.png')
|
image = models.ImageField(upload_to='portraits', default='silhouette.png')
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="col-lg-6 pt-3 bg-light-blue">
|
<div class="col-lg-6 pt-3 bg-light-blue">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<h2 class="d-none d-lg-inline text-dark-primary">{{ attorney.name }}</h2>
|
<h2 class="d-none d-lg-inline text-dark-primary">{{ attorney.name }}</h2>
|
||||||
<p>{{ attorney.bio }}</p>
|
<p>{{ attorney.biography }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user