Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django-persistent-settings
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
2
Konular (issue)
2
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Eray Erdin
django-persistent-settings
Commits
1a3b590d
Unverified
Kaydet (Commit)
1a3b590d
authored
Ara 08, 2019
tarafından
Eray Erdin
🎖
Kaydeden (comit)
GitHub
Ara 08, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #7 from erayerdin/fix/variable-pk
Standard Primary Key in `Variable` model
üst
971170c2
17f909ca
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
21 deletions
+11
-21
0001_initial.py
persistent_settings/migrations/0001_initial.py
+10
-4
0002_auto_20191206_1520.py
persistent_settings/migrations/0002_auto_20191206_1520.py
+0
-16
models.py
persistent_settings/models.py
+1
-1
No files found.
persistent_settings/migrations/0001_initial.py
Dosyayı görüntüle @
1a3b590d
# Generated by Django 2.2.8 on 2019-12-0
6 14
:39
# Generated by Django 2.2.8 on 2019-12-0
8 20
:39
from
django.db
import
migrations
,
models
...
...
@@ -14,10 +14,16 @@ class Migration(migrations.Migration):
name
=
"Variable"
,
fields
=
[
(
"name"
,
models
.
SlugField
(
max_length
=
64
,
primary_key
=
True
,
serialize
=
False
),
"id"
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
"ID"
,
),
),
(
"value"
,
models
.
BinaryField
()),
(
"name"
,
models
.
SlugField
(
max_length
=
64
,
unique
=
True
)),
(
"value_binary"
,
models
.
BinaryField
()),
],
options
=
{
"ordering"
:
(
"name"
,),},
),
...
...
persistent_settings/migrations/0002_auto_20191206_1520.py
deleted
100644 → 0
Dosyayı görüntüle @
971170c2
# Generated by Django 2.2.8 on 2019-12-06 15:20
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
"persistent_settings"
,
"0001_initial"
),
]
operations
=
[
migrations
.
RenameField
(
model_name
=
"variable"
,
old_name
=
"value"
,
new_name
=
"value_binary"
,
),
]
persistent_settings/models.py
Dosyayı görüntüle @
1a3b590d
...
...
@@ -56,7 +56,7 @@ class Variable(models.Model):
A single setting.
"""
name
=
models
.
SlugField
(
primary_key
=
True
,
max_length
=
64
)
name
=
models
.
SlugField
(
unique
=
True
,
max_length
=
64
)
value_binary
=
models
.
BinaryField
()
objects
=
_VariableManager
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment