Skip to content
Snippets Groups Projects
Verified Commit ec44fb43 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add last_read_counter for cryptographic NFC tags

parent d019e8d1
No related branches found
No related tags found
1 merge request!14Draft: Resolve "Object / Person identification using SDM NFC cards"
# Generated by Django 4.1.9 on 2023-06-17 14:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("sites", "0002_alter_domain_unique"),
("kort", "0015_migrate_scopes"),
]
operations = [
migrations.AddField(
model_name="card",
name="last_read_counter",
field=models.IntegerField(default=0, verbose_name="Last read counter"),
),
]
...@@ -263,6 +263,8 @@ class Card(ExtensibleModel): ...@@ -263,6 +263,8 @@ class Card(ExtensibleModel):
valid_until = models.DateField(verbose_name=_("Valid until")) valid_until = models.DateField(verbose_name=_("Valid until"))
deactivated = models.BooleanField(verbose_name=_("Deactivated"), default=False) deactivated = models.BooleanField(verbose_name=_("Deactivated"), default=False)
last_read_counter = models.IntegerField(verbose_name=_("Last read counter"), default=0)
layout = models.ForeignKey( layout = models.ForeignKey(
CardLayout, on_delete=models.SET_NULL, blank=True, null=True, verbose_name=_("Card Layout") CardLayout, on_delete=models.SET_NULL, blank=True, null=True, verbose_name=_("Card Layout")
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment