Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat voting/models.py
- from django.utils.translation import ugettext_lazy as _
- from django.db import models
- from django.contrib.auth.models import User
- class Agenda( models.Model ):
- """
- Holds the details for an Agenda posted by submitter
- """
- title = models.CharField( verbose_name=_( "Title" ), blank=False )
- content = models.CharField( verbose_name=_( "Agenda Description" ), blank=False )
- author = models.ForeignKey( User, verbose_name=_( "Author" ), blank=False )
- created = models.DateTimeField( auto_now_add=True, verbose_name=_( "Creation Time" ), blank=False )
- User = models.CharField(max_lenth=32)
- End = models.DateTimeField()
- def __unicode__( self ):
- return self.title
- @models.permalink
- def get_absolute_url( self ):
- return ( "aur2:detail", ( ), { "object_id" : self.id } )
Add Comment
Please, Sign In to add comment