del default value of post_type, update gitignore file
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -28,7 +28,7 @@ router.register(r'members', MemberViewSet)
|
||||
|
||||
urlpatterns = [
|
||||
path('posts/', include('posts.urls')),
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('', views.index, name='home'),
|
||||
path('index.html', views.index, name='home'),
|
||||
|
||||
@@ -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