diff options
author | luxagraf <sng@luxagraf.net> | 2018-07-07 20:41:09 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-07-07 20:41:09 -0400 |
commit | 6a2393e6819ea09aeb559354a69746750aa8cbdf (patch) | |
tree | 0ac9890740f9afcd9720ea9b550a3895d95ecb50 /app/src | |
parent | fe13c3830c6b36fb8f78009a788650a992cb3070 (diff) |
added campsite model, refactored some code to avoid circular imports,
reorganized some auxilary functions and fixed broken build JS.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/migrations/0003_auto_20180707_0958.py | 17 | ||||
-rw-r--r-- | app/src/models.py | 3 |
2 files changed, 18 insertions, 2 deletions
diff --git a/app/src/migrations/0003_auto_20180707_0958.py b/app/src/migrations/0003_auto_20180707_0958.py new file mode 100644 index 0000000..f619888 --- /dev/null +++ b/app/src/migrations/0003_auto_20180707_0958.py @@ -0,0 +1,17 @@ +# Generated by Django 2.0.1 on 2018-07-07 09:58 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('src', '0002_auto_20160329_2107'), + ] + + operations = [ + migrations.AlterModelOptions( + name='post', + options={'get_latest_by': 'pub_date', 'ordering': ('-pub_date',), 'verbose_name_plural': 'posts'}, + ), + ] diff --git a/app/src/models.py b/app/src/models.py index 5b0fdcd..ff829e1 100644 --- a/app/src/models.py +++ b/app/src/models.py @@ -6,8 +6,7 @@ from django.conf import settings import datetime from itertools import chain -from utils.widgets import parse_image -from utils.widgets import markdown_to_html +from utils.util import parse_image, markdown_to_html def render_images(s): |