Skip to content

Commit

Permalink
[doc] work on doc and page
Browse files Browse the repository at this point in the history
  • Loading branch information
KemoPanzah committed Jun 16, 2023
1 parent 707a372 commit 6790767
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ We now create the file first_model.py in the directory **models** and insert the
.. note::
In the example shown here, we import, from the **uniform library**, the Conform_model class and extend it with the firstname and lastname fields.

The ID in the form of a UUID is generated automatically and does not have to be specified separately.

The models in **decore Base** are based on the great Peewee ORM. To learn more about Peewee, visit `Peewee ORM <http://docs.peewee-orm.com/en/latest/>`_.

.. warning::
Expand Down Expand Up @@ -230,6 +228,8 @@ We now need an action to store the data of the new person and extend the code in
.. note::
To create a record with decore Base, we need to create an instance of the model. In our case **First_model**. The instance is filled with the data from the form and then saved.

The ID in the form of a UUID is generated automatically and does not have to be specified separately.

.. warning::
The field **title** was inherited from the class **Deform_model** and must be used for each record creation. Otherwise the item will fail the validation.

Expand Down
4 changes: 2 additions & 2 deletions README_DE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ Wir legen nun die Datei first_model.py im Verzeichnis **models** an und fügen f
.. note::
Im hier gezeigten Beispiel importieren wir, aus der **uniform-Bibliothek**, die Conform_model Klasse und erweiteren diese um die Felder firstname und lastname.

Die ID in Form einer UUID wird automatisch generiert und muss nicht extra angegeben werden.

Die Modelle in **decore Base** basieren auf dem großartigen Peewee ORM. Um mehr über Peewee zu erfahren, besuchen Sie `Peewee ORM <http://docs.peewee-orm.com/en/latest/>`_.

.. warning::
Expand Down Expand Up @@ -230,6 +228,8 @@ Wir benötigen nun eine Action um die Daten der neuen Person zu speichern und er
.. note::
Um mit decore Base einen Datensatz zu erzeugen, müssen wir eine Instanz vom Model erzeugen. In unserem Fall **First_model**. Die Instanz wird mit den Daten aus dem Formular befüllt und anschließend gespeichert.

Die ID in Form einer UUID wird automatisch generiert und muss nicht extra angegeben werden.

.. warning::
Das Feld **title** wurde aus der Klasse **Deform_model** geerbt und muss bei jeder Datensatzerzeugung belegt werden. Sonst fällt das Item durch die Validierung.

Expand Down
Binary file modified docs/page/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/page/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/page/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ <h4>Model<a class="headerlink" href="#model" title="Permalink to this heading">#
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>In the example shown here, we import, from the <strong>uniform library</strong>, the Conform_model class and extend it with the firstname and lastname fields.</p>
<p>The ID in the form of a UUID is generated automatically and does not have to be specified separately.</p>
<p>The models in <strong>decore Base</strong> are based on the great Peewee ORM. To learn more about Peewee, visit <a class="reference external" href="http://docs.peewee-orm.com/en/latest/">Peewee ORM</a>.</p>
</div>
<div class="admonition warning">
Expand Down Expand Up @@ -452,6 +451,7 @@ <h4>Action<a class="headerlink" href="#action" title="Permalink to this heading"
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>To create a record with decore Base, we need to create an instance of the model. In our case <strong>First_model</strong>. The instance is filled with the data from the form and then saved.</p>
<p>The ID in the form of a UUID is generated automatically and does not have to be specified separately.</p>
</div>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/page/html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6790767

Please sign in to comment.