0038-misc-fix-assignment-from-none-pylint-error-62099.patch
passerelle/apps/csvdatasource/models.py | ||
---|---|---|
196 | 196 | |
197 | 197 |
def save(self, *args, **kwargs): |
198 | 198 |
cache = kwargs.pop('cache', True) |
199 |
result = super().save(*args, **kwargs)
|
|
199 |
super().save(*args, **kwargs) |
|
200 | 200 |
if cache: |
201 | 201 |
self.cache_data() |
202 |
return result |
|
203 | 202 | |
204 | 203 |
def cache_data(self): |
205 | 204 |
with transaction.atomic(): |
passerelle/apps/sector/models.py | ||
---|---|---|
120 | 120 | |
121 | 121 |
def save(self, *args, **kwargs): |
122 | 122 |
import_csv = kwargs.pop('import_csv', True) |
123 |
result = super().save(*args, **kwargs)
|
|
123 |
super().save(*args, **kwargs) |
|
124 | 124 |
if import_csv: |
125 | 125 |
self.import_csv() |
126 |
return result |
|
127 | 126 | |
128 | 127 |
@transaction.atomic |
129 | 128 |
def import_csv(self, validate_only=False): |
130 |
- |