parent
ef8b0514b0
commit
e39fd5808b
32 changed files with 36 additions and 354 deletions
@ -1,13 +0,0 @@ |
|||||||
from django.db import models |
|
||||||
from django.contrib.contenttypes.models import ContentType |
|
||||||
from django.contrib.contenttypes import generic |
|
||||||
|
|
||||||
|
|
||||||
class Note(models.Model): |
|
||||||
content_type = models.ForeignKey(ContentType, null=True) |
|
||||||
object_id = models.PositiveIntegerField() |
|
||||||
content_object = generic.GenericForeignKey(ct_field="content_type", fk_field="object_pk") |
|
||||||
user = models.ForeignKey('accounts.User') |
|
||||||
text = models.TextField(verbose_name='Note') |
|
||||||
|
|
||||||
|
|
||||||
@ -1,16 +0,0 @@ |
|||||||
""" |
|
||||||
This file demonstrates writing tests using the unittest module. These will pass |
|
||||||
when you run "manage.py test". |
|
||||||
|
|
||||||
Replace this with more appropriate tests for your application. |
|
||||||
""" |
|
||||||
|
|
||||||
from django.test import TestCase |
|
||||||
|
|
||||||
|
|
||||||
class SimpleTest(TestCase): |
|
||||||
def test_basic_addition(self): |
|
||||||
""" |
|
||||||
Tests that 1 + 1 always equals 2. |
|
||||||
""" |
|
||||||
self.assertEqual(1 + 1, 2) |
|
||||||
@ -1 +0,0 @@ |
|||||||
# Create your views here. |
|
||||||
@ -1,12 +1,10 @@ |
|||||||
{% load i18n %} |
{% load i18n %} |
||||||
<div class="mps-sect"> |
<div class="mps-sect"> |
||||||
<header>{% trans 'Наши услуги' %}</header> |
<header>{% trans 'Наши услуги' %}</header> |
||||||
<nav> |
<nav> |
||||||
<ul> |
<ul> |
||||||
<li><a href="/service/participation/">{% trans 'Участие в выставках' %}</a></li> |
<li><a href="/advertising/">{% trans 'Продвижение событий' %}</a></li> |
||||||
<li><a href="/service/translator/">{% trans 'Переводчики' %}</a></li> |
<li><a href="/service/participation/">{% trans 'Участие в выставках' %}</a></li> |
||||||
{% comment %}<li><a href="/service/tickets/">{% trans 'Билеты на выставки' %}</a></li>{% endcomment %} |
</ul> |
||||||
<li><a href="/service/remote/">{% trans 'Заочное посещение' %}</a></li> |
</nav> |
||||||
</ul> |
|
||||||
</nav> |
|
||||||
</div> |
</div> |
||||||
|
|||||||
Loading…
Reference in new issue