Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Hjelp
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
Model registry
Operate
Environments
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®
Official
AlekSIS-App-Hjelp
Merge requests
!81
Resolve "Fields must be unique per site"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Fields must be unique per site"
40-fields-must-be-unique-per-site
into
master
Overview
3
Commits
4
Pipelines
6
Changes
3
Merged
Lloyd Meins
requested to merge
40-fields-must-be-unique-per-site
into
master
3 years ago
Overview
3
Commits
4
Pipelines
6
Changes
3
Expand
Closes
#40 (closed)
Edited
3 years ago
by
Lloyd Meins
0
0
Merge request reports
Compare
master
version 4
fd8867ff
3 years ago
version 3
75fb9761
3 years ago
version 2
5df0b288
3 years ago
version 1
735c6338
3 years ago
master (base)
and
latest version
latest version
81076228
4 commits,
3 years ago
version 4
fd8867ff
4 commits,
3 years ago
version 3
75fb9761
3 commits,
3 years ago
version 2
5df0b288
2 commits,
3 years ago
version 1
735c6338
1 commit,
3 years ago
3 files
+
67
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
aleksis/apps/hjelp/migrations/0004_unique_constraints.py
0 → 100644
+
49
−
0
Options
# Generated by Django 3.2.3 on 2021-05-28 23:05
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
hjelp
'
,
'
0003_faqsection_position_and_show
'
),
]
operations
=
[
migrations
.
AlterModelOptions
(
name
=
'
faqsection
'
,
options
=
{
'
ordering
'
:
[
'
position
'
],
'
verbose_name
'
:
'
FAQ section
'
,
'
verbose_name_plural
'
:
'
FAQ sections
'
},
),
migrations
.
AlterModelOptions
(
name
=
'
hjelpglobalpermissions
'
,
options
=
{
'
managed
'
:
False
,
'
permissions
'
:
((
'
view_faq
'
,
'
Can view FAQ
'
),
(
'
ask_faq
'
,
'
Can ask FAQ question
'
),
(
'
report_issue
'
,
'
Can report issues
'
),
(
'
send_feedback
'
,
'
Can send feedback
'
))},
),
migrations
.
AlterField
(
model_name
=
'
faqsection
'
,
name
=
'
name
'
,
field
=
models
.
CharField
(
max_length
=
255
,
verbose_name
=
'
Name
'
),
),
migrations
.
AlterField
(
model_name
=
'
faqsection
'
,
name
=
'
position
'
,
field
=
models
.
PositiveIntegerField
(
blank
=
True
,
default
=
1
,
verbose_name
=
'
Order
'
),
),
migrations
.
AlterField
(
model_name
=
'
issuecategory
'
,
name
=
'
name
'
,
field
=
models
.
CharField
(
max_length
=
255
,
verbose_name
=
'
Name
'
),
),
migrations
.
AlterField
(
model_name
=
'
issuecategory
'
,
name
=
'
placeholder
'
,
field
=
models
.
CharField
(
blank
=
True
,
max_length
=
255
,
verbose_name
=
'
Placeholder
'
),
),
migrations
.
AddConstraint
(
model_name
=
'
faqsection
'
,
constraint
=
models
.
UniqueConstraint
(
fields
=
(
'
site_id
'
,
'
name
'
),
name
=
'
unique_section_name_per_site
'
),
),
migrations
.
AddConstraint
(
model_name
=
'
issuecategory
'
,
constraint
=
models
.
UniqueConstraint
(
fields
=
(
'
site_id
'
,
'
name
'
),
name
=
'
unique_category_name_per_site
'
),
),
]
Loading