You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kompass/jdav_web/ludwigsburgalpin/models.py

15 lines
409 B
Python

from django.db import models
class Group(models.Model):
name = models.CharField('Name', max_length=50)
# Create your models here.
class Termin(models.Model):
title = models.CharField('Titel', max_length=100)
start_date = models.DateField('Von')
end_date = models.DateField('Bis')
group = models.ForeignKey('ludwigsburgalpin.Group',
verbose_name='Gruppe')