del default value of post_type, update gitignore file
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -4,6 +4,8 @@
|
||||
fet2020/files/*
|
||||
fet2020/.env/*
|
||||
*.sqlite3
|
||||
fet2020/posts/migrations/*
|
||||
fet2020/members/migrations/*
|
||||
fet2020/*/migrations/*
|
||||
.theia/*
|
||||
.flake8
|
||||
migrate
|
||||
run
|
||||
@@ -1,23 +0,0 @@
|
||||
# Generated by Django 3.0.6 on 2020-07-17 13:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('documents', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='document',
|
||||
name='id',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='document',
|
||||
name='key',
|
||||
field=models.CharField(default='', max_length=200, primary_key=True, serialize=False),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -32,7 +32,7 @@ LOGGING = {
|
||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
SESSION_COOKIE_DOMAIN =".2020.fet.at"
|
||||
SESSION_COOKIE_DOMAIN = ".2020.fet.at"
|
||||
|
||||
# Quick-start development settings - unsuitable for production
|
||||
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
|
||||
|
||||
@@ -105,7 +105,7 @@ class Post(models.Model):
|
||||
('E', _('Event')),
|
||||
('F', _('FetMeeting'))
|
||||
]
|
||||
post_type = models.CharField(max_length=1, choices=__choices, editable=False, default='N')
|
||||
post_type = models.CharField(max_length=1, choices=__choices, editable=False)
|
||||
|
||||
is_event = models.BooleanField(default=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user