Commit 34f731c6f0a4de7591cf7ec6e2f74f47294bf626

Authored by Katarzyna Krasnowska
1 parent d866a541

added beta version of pseudo-natural language realisation descriptions

Too many changes to show.

To preserve performance only 2 of 19 files are displayed.

common/templates/base.html
... ... @@ -46,6 +46,7 @@
46 46 </a>
47 47 </li>
48 48 {% block lastvisited %}{% endblock %}
  49 + {% block settings %}{% endblock %}
49 50 <li class="nav-item" id="nav-phrases">
50 51 <a class="nav-link" href="{% url 'phrase_expansions:phrase_expansions' %}">
51 52 {% trans "Typy fraz" %}
... ...
connections/models.py
... ... @@ -2,7 +2,7 @@ from django.db import models
2 2  
3 3 from examples.models import Example
4 4 from meanings.models import LexicalUnit
5   -from semantics.models import Argument
  5 +from semantics.models import Argument, Frame
6 6 from syntax.models import Position, Schema, Subentry
7 7 from syntax.models_phrase import PhraseType
8 8  
... ... @@ -61,6 +61,7 @@ class SchemaHook(models.Model):
61 61 position = models.ForeignKey(Position, related_name='schema_hooks', on_delete=models.PROTECT)
62 62 phrase_type = models.ForeignKey(PhraseType, related_name='schema_hooks', on_delete=models.PROTECT)
63 63 alternation = models.IntegerField(default=1)
  64 + description = models.TextField()
64 65  
65 66 def __str__(self):
66 67 return 'sub_%d_sch_%d_pos_%d_pt_%d_alt_%d_' % (self.subentry.id, self.schema.id, self.position.id,
... ... @@ -70,3 +71,9 @@ class SchemaHook(models.Model):
70 71 class ArgumentConnection(models.Model):
71 72 argument = models.ForeignKey(Argument, related_name='argument_connections', on_delete=models.PROTECT)
72 73 schema_connections = models.ManyToManyField('SchemaHook', related_name='argument_connections')
  74 +
  75 +class RealisationDescription(models.Model):
  76 + frame = models.ForeignKey(Frame, related_name='alternation_meanings', on_delete=models.PROTECT)
  77 + schema = models.ForeignKey(Schema, related_name='alternation_meanings', on_delete=models.PROTECT)
  78 + alternation = models.IntegerField(default=1)
  79 + description = models.TextField()
... ...