Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Kort
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Kort
Commits
ec44fb43
Verified
Commit
ec44fb43
authored
2 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Add last_read_counter for cryptographic NFC tags
parent
d019e8d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
Draft: Resolve "Object / Person identification using SDM NFC cards"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
aleksis/apps/kort/migrations/0016_card_last_read_counter.py
+20
-0
20 additions, 0 deletions
aleksis/apps/kort/migrations/0016_card_last_read_counter.py
aleksis/apps/kort/models/cards.py
+2
-0
2 additions, 0 deletions
aleksis/apps/kort/models/cards.py
with
22 additions
and
0 deletions
aleksis/apps/kort/migrations/0016_card_last_read_counter.py
0 → 100644
+
20
−
0
View file @
ec44fb43
# 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
"
),
),
]
This diff is collapsed.
Click to expand it.
aleksis/apps/kort/models/cards.py
+
2
−
0
View file @
ec44fb43
...
@@ -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
"
)
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment