- forum with user pictures
- archive function
This commit is contained in:
Martin Bauer
2013-09-15 12:29:56 +02:00
parent d5f461181d
commit f0746172ec
17 changed files with 245 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ class Event ( models.Model ):
( 'Party', _('Party') ),
)
title = models.CharField( max_length=40, verbose_name = _("title") )
title = models.CharField( max_length=40, verbose_name = _("titel") )
type = models.CharField( max_length=6, choices=EVENT_TYPES, default='Reh', verbose_name= _("type") )
location = models.TextField( blank=False, verbose_name=_("location") )
desc = models.TextField( blank=True, verbose_name=_("description"))

View File

@@ -2,9 +2,8 @@
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.forms.models import ModelForm
from django.forms import TextInput, DateInput, TimeInput
from django.forms import TextInput
from models import Event, EventParticipation
from musicians.models import Musician
@@ -20,9 +19,7 @@ from rest_framework import status
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from django.core import urlresolvers
from django.contrib.auth.decorators import permission_required
# ---------------------------------------- API ---------------------------------------------------------