Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Django Favicon Plus Reloaded
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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®
Libraries
Django Favicon Plus Reloaded
Commits
f4893fbe
Commit
f4893fbe
authored
4 years ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Create migration for siteframework
parent
2b7b26d6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
favicon/migrations/0001_initial.py
+4
-3
4 additions, 3 deletions
favicon/migrations/0001_initial.py
favicon/migrations/0002_favicon_site.py
+19
-0
19 additions, 0 deletions
favicon/migrations/0002_favicon_site.py
favicon/models.py
+1
-1
1 addition, 1 deletion
favicon/models.py
with
24 additions
and
4 deletions
favicon/migrations/0001_initial.py
+
4
−
3
View file @
f4893fbe
# Generated by Django 3.0.4 on 2020-04-29 11:15
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-02 11:58
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
import
django.db.models.deletion
...
...
@@ -19,11 +21,10 @@ class Migration(migrations.Migration):
(
'
title
'
,
models
.
CharField
(
max_length
=
100
)),
(
'
faviconImage
'
,
models
.
ImageField
(
upload_to
=
'
favicon
'
)),
(
'
isFavicon
'
,
models
.
BooleanField
(
default
=
True
)),
(
'
site
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
favicon
'
,
to
=
'
sites.Site
'
)),
],
options
=
{
'
verbose_name
'
:
'
Favicon
'
,
'
verbose_name_plural
'
:
'
Favicons
'
,
'
verbose_name
'
:
'
Favicon
'
,
},
),
migrations
.
CreateModel
(
...
...
This diff is collapsed.
Click to expand it.
favicon/migrations/0002_favicon_site.py
0 → 100644
+
19
−
0
View file @
f4893fbe
# Generated by Django 3.0.4 on 2020-04-29 18:02
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'
favicon
'
,
'
0001_initial
'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'
favicon
'
,
name
=
'
site
'
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
favicon
'
,
to
=
'
sites.Site
'
),
),
]
This diff is collapsed.
Click to expand it.
favicon/models.py
+
1
−
1
View file @
f4893fbe
...
...
@@ -32,7 +32,7 @@ class Favicon(models.Model):
isFavicon
=
models
.
BooleanField
(
default
=
True
)
site
=
models
.
ForeignKey
(
Site
,
related_name
=
"
favicon
"
,
on_delete
=
models
.
CASCADE
)
site
=
models
.
ForeignKey
(
Site
,
related_name
=
"
favicon
"
,
on_delete
=
models
.
CASCADE
,
blank
=
True
,
null
=
True
)
class
Meta
:
verbose_name
=
'
Favicon
'
...
...
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