Rest framework for Event and SignupForm
This commit is contained in:
+5
-6
@@ -2,16 +2,16 @@
|
||||
|
||||
from django.db import models
|
||||
from django.utils import timezone
|
||||
from datetime import timedelta
|
||||
# from datetime import timedelta
|
||||
from django.contrib.auth.models import User
|
||||
from webapp.utils import month_from_now
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.contrib.auth.models import User
|
||||
# from django.contrib.auth.models import User
|
||||
from auditlog.registry import auditlog
|
||||
from phonenumber_field.modelfields import PhoneNumberField
|
||||
from django.contrib.postgres.fields import JSONField
|
||||
# from django.contrib.postgres.fields import JSONField
|
||||
|
||||
import logging
|
||||
# import logging
|
||||
|
||||
|
||||
VERBOSE_NAME = _('Webapp')
|
||||
@@ -92,7 +92,7 @@ class SignupForm(models.Model):
|
||||
start = models.DateTimeField(default=timezone.now)
|
||||
end = models.DateTimeField(default=timezone.now)
|
||||
# question = JSONField()
|
||||
question = models.CharField(max_length=255)
|
||||
questions = models.CharField(max_length=255)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Signup form')
|
||||
@@ -112,7 +112,6 @@ class Signup(models.Model):
|
||||
verbose_name_plural = _('Sign-ups')
|
||||
|
||||
|
||||
|
||||
class BaseRole(models.Model):
|
||||
"""Base model for occupations/roles."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user