Event resturcturing
- new short_description field instead of title - autosave text - autocompletion on login
This commit is contained in:
21
simpleforum/models.py
Normal file
21
simpleforum/models.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from django.db import models
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
|
||||
class Message ( models.Model ):
|
||||
|
||||
titel = models.CharField( max_length = 100, verbose_name = _("titel") )
|
||||
text = models.TextField( blank=False, verbose_name = _("text") )
|
||||
|
||||
creation_time = models.DateTimeField( verbose_name=_("creation_time") )
|
||||
|
||||
author = models.ForeignKey( User, verbose_name=_("Author") )
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user