Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Tezor
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-Tezor
Commits
d2a744c9
Commit
d2a744c9
authored
3 years ago
by
Tom Teichler
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of edugit.org:AlekSIS/onboarding/AlekSIS-App-Tezor
parents
d95d2139
4aab8645
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/tezor/models/invoice.py
+1
-2
1 addition, 2 deletions
aleksis/apps/tezor/models/invoice.py
with
1 addition
and
2 deletions
aleksis/apps/tezor/models/invoice.py
+
1
−
2
View file @
d2a744c9
...
...
@@ -28,7 +28,6 @@ class Invoice(BasePayment, PureDjangoModel):
group
=
models
.
ForeignKey
(
InvoiceGroup
,
verbose_name
=
_
(
"
Invoice group
"
),
related_name
=
"
invoices
"
)
number
=
models
.
CharField
(
verbose_name
=
_
(
"
Invoice number
"
))
for_content_type
=
models
.
ForeignKey
(
ContetType
,
on_delete
=
models
.
SET_NULL
)
for_object_id
=
models
.
PositiveIntegerField
()
...
...
@@ -39,5 +38,5 @@ class Invoice(BasePayment, PureDjangoModel):
class
Meta
:
constraints
=
[
models
.
UniqueConstraint
(
fields
=
[
"
number
"
,
"
token
"
],
name
=
"
number_uniq_per_group
"
)
models
.
UniqueConstraint
(
fields
=
[
"
transaction_id
"
,
"
group
"
],
name
=
"
number_uniq_per_group
"
)
]
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