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/
|
.idea/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
# Tools
|
||||||
|
.mypy_cache/
|
||||||
|
|
||||||
# Runtime
|
# Runtime
|
||||||
/static/
|
/static/
|
||||||
venv/
|
venv/
|
||||||
|
|||||||
@@ -74,4 +74,3 @@ class ActivityAttendanceSerializer(base.FlattenedModelSerializer):
|
|||||||
'activity',
|
'activity',
|
||||||
'person',
|
'person',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,18 @@ class PersonForm(forms.ModelForm):
|
|||||||
"""
|
"""
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.Person
|
model = models.Person
|
||||||
exclude = [
|
fields = [
|
||||||
'user',
|
'name',
|
||||||
'relationship_targets',
|
'core_member',
|
||||||
|
'gender',
|
||||||
|
'age_group',
|
||||||
|
'nationality',
|
||||||
|
'country_of_residence',
|
||||||
|
'organisation',
|
||||||
|
'job_title',
|
||||||
|
'discipline',
|
||||||
|
'role',
|
||||||
|
'themes',
|
||||||
]
|
]
|
||||||
widgets = {
|
widgets = {
|
||||||
'nationality': Select2Widget(),
|
'nationality': Select2Widget(),
|
||||||
|
|||||||
@@ -175,5 +175,3 @@ class Person(models.Model):
|
|||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user