Models look like this: #################
class News(models.Model): news_title = models.CharField(maxlength=255, verbose_name='Tytul') news_text = models.TextField(verbose_name='Tresc') news_more = models.TextField(verbose_name='Rozszerzona Tresc', blank=True, default='') news_date = models.DateTimeField(auto_now_add = True, blank=True) news_keywords = models.CharField(maxlength=255, verbose_name='Slowa Kluczowe', db_index=True) class Meta: verbose_name = "Nowosc" verbose_name_plural = "Nowosci" db_table = 'rk_news' + str(settings.SITE_ID) class Admin: list_display = ('news_title', 'news_date') list_filter = ['news_date'] search_fields = ['news_title', 'news_text'] date_hierarchy = 'news_date' fields = ( (None, { 'fields': ('news_title', 'news_text', 'news_keywords') }), ('Rozszerzona Tresc', { 'classes': 'collapse', 'fields' : ('news_more',) }),) def __str__(self): return self.news_title class Page(models.Model): title = models.CharField(maxlength=255, verbose_name='Tytul') slug = models.SlugField(maxlength=255, unique=True, verbose_name='Odnosnik', prepopulate_from=['title']) description = models.CharField(maxlength=255, verbose_name='Opis') text = models.TextField(verbose_name='Tresc') creation_date = models.DateTimeField(auto_now_add = True, blank=True) modification_date = models.DateTimeField(auto_now = True, blank=True) class Meta: verbose_name = "Strona" verbose_name_plural = "Strony" db_table = 'rk_page' + str(settings.SITE_ID) class Admin: list_display = ('title', 'slug') search_fields = ['title', 'text', 'description'] fields = ( (None, { 'fields': ('title', 'slug', 'description', 'text') }),) def get_absolute_url(self): return '/w/p/' + self.slug + '/' def __str__(self): return self.slug ###################### User views show the data and the Admin Panel is used for add/edit work. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---