Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Profile notes to free_response fixes #17 #20

Merged
merged 1 commit into from
Sep 11, 2020
Merged
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
4 changes: 2 additions & 2 deletions member_manager/admin/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class ProfileAdmin(TimestampAdmin):
"""ProfileAdmin shows profile, availability, and skill data"""

fields = ['last_name', 'first_name', 'user', 'active', 'pronouns',
'email', 'phone', 'joined', 'notes', 'created', 'created_by',
'modified', 'modified_by']
'email', 'phone', 'joined', 'free_response', 'created',
'created_by', 'modified', 'modified_by']
inlines = [AvailabilityInline, ProfileSkillInline]
list_display = ['last_name', 'first_name', 'user', 'active', 'email',
'phone']
Expand Down
2 changes: 1 addition & 1 deletion member_manager/models/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Profile(Timestamp):
user = models.OneToOneField(User, blank=True, null=True,
on_delete=models.CASCADE)
joined = models.DateField(blank=True, null=True)
notes = models.TextField(blank=True)
free_response = models.TextField(blank=True)

def __str__(self):
return '{} {}'.format(self.first_name, self.last_name)
Expand Down