mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
style: Fix a few minor style issues
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,7 +1,10 @@
|
||||
# IDE files
|
||||
# IDEs
|
||||
.idea/
|
||||
.vscode/
|
||||
|
||||
# Tools
|
||||
.mypy_cache/
|
||||
|
||||
# Runtime
|
||||
/static/
|
||||
venv/
|
||||
|
||||
@@ -74,4 +74,3 @@ class ActivityAttendanceSerializer(base.FlattenedModelSerializer):
|
||||
'activity',
|
||||
'person',
|
||||
]
|
||||
|
||||
|
||||
@@ -14,9 +14,18 @@ class PersonForm(forms.ModelForm):
|
||||
"""
|
||||
class Meta:
|
||||
model = models.Person
|
||||
exclude = [
|
||||
'user',
|
||||
'relationship_targets',
|
||||
fields = [
|
||||
'name',
|
||||
'core_member',
|
||||
'gender',
|
||||
'age_group',
|
||||
'nationality',
|
||||
'country_of_residence',
|
||||
'organisation',
|
||||
'job_title',
|
||||
'discipline',
|
||||
'role',
|
||||
'themes',
|
||||
]
|
||||
widgets = {
|
||||
'nationality': Select2Widget(),
|
||||
|
||||
@@ -175,5 +175,3 @@ class Person(models.Model):
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.name
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user