fixed trashbin stuff #29

Merged
heinzel merged 2 commits from heinzel into master 2020-12-08 19:37:39 +01:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit e501ada83f - Show all commits

View File

@@ -27,9 +27,10 @@ class Migration(migrations.Migration):
'ordering': ['updated_at'], 'ordering': ['updated_at'],
}, },
), ),
migrations.RemoveField( migrations.RenameField(
model_name='registration', model_name='registration',
name='answered', old_name='answered',
new_name='answered_2migrate',
), ),
migrations.AddField( migrations.AddField(
model_name='registrationstatus', model_name='registrationstatus',

View File

@@ -72,6 +72,8 @@ class Registration(models.Model):
verbose_name=_('Einwilligung zur Datenspeicherung')) verbose_name=_('Einwilligung zur Datenspeicherung'))
purge_at = models.DateTimeField(_('Zeitpunkt der Datenlöschung')) purge_at = models.DateTimeField(_('Zeitpunkt der Datenlöschung'))
answered_2migrate = models.BooleanField(default=False, verbose_name=_('Durch Tourleitung beantwortet'))
@staticmethod @staticmethod
def pk2hexstr(pk): def pk2hexstr(pk):
return hex(pk * 113)[2:] # 113 has no meaning, but it produce nice looking hex codes. return hex(pk * 113)[2:] # 113 has no meaning, but it produce nice looking hex codes.