diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-14 14:51:22 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-09-14 14:51:22 +0200 |
| commit | 82e1fc552f0312b3719a937fea528a130c982978 (patch) | |
| tree | 38494837effca934eaf5ff369da10ddcbae33e5a /archaeological_finds | |
| parent | 5717274f9375c60d4f964be5e589b4282f4b1d0f (diff) | |
| download | Ishtar-82e1fc552f0312b3719a937fea528a130c982978.tar.bz2 Ishtar-82e1fc552f0312b3719a937fea528a130c982978.zip | |
Django 1.11: fix get_model_fields
Diffstat (limited to 'archaeological_finds')
| -rw-r--r-- | archaeological_finds/models_finds.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index b3a167a26..8a7dbaf08 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -327,14 +327,6 @@ class BaseFind(BulkUpdatedItem, BaseHistorizedItem, OwnPerms): def name(self): return self.label - @classmethod - def get_extra_fields(cls): - fields = {} - for field in Find._meta.many_to_many: - if field.name == 'base_finds': - fields['find'] = field.related.model - return fields - def save(self, *args, **kwargs): returned = super(BaseFind, self).save(*args, **kwargs) |
