From 315e96d4c9aa127e9266eea5d45a90903f178b2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 24 Nov 2013 12:47:13 +0100 Subject: [PATCH] Import cleanup --- .project | 18 ++++++++++++++++++ .pydevproject | 12 ++++++++++++ comicsporn/admin.py | 4 +++- comicsporn/models.py | 4 ++-- 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .project create mode 100644 .pydevproject diff --git a/.project b/.project new file mode 100644 index 0000000..7c88282 --- /dev/null +++ b/.project @@ -0,0 +1,18 @@ + + + djangowork + + + + + + org.python.pydev.PyDevBuilder + + + + + + org.python.pydev.django.djangoNature + org.python.pydev.pythonNature + + diff --git a/.pydevproject b/.pydevproject new file mode 100644 index 0000000..222e682 --- /dev/null +++ b/.pydevproject @@ -0,0 +1,12 @@ + + +Default +python 2.7 + +/${PROJECT_DIR_NAME} + + +DJANGO_MANAGE_LOCATION +manage.py + + diff --git a/comicsporn/admin.py b/comicsporn/admin.py index 6e1f222..45d0e80 100644 --- a/comicsporn/admin.py +++ b/comicsporn/admin.py @@ -1,9 +1,11 @@ from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User -from comicsporn.models import Style, UserProfile, Comic_block, Comic from django.utils.translation import ugettext as _ +from comicsporn.models import Style, UserProfile, Comic_block, Comic + + admin.site.register(Style) class UserProfileInline(admin.StackedInline): diff --git a/comicsporn/models.py b/comicsporn/models.py index e0ed5db..e162d04 100644 --- a/comicsporn/models.py +++ b/comicsporn/models.py @@ -1,7 +1,8 @@ -from django.db import models from django.contrib.auth.models import User +from django.db import models from django.utils.translation import ugettext_lazy as _ + # A very basic data model to begin with # TODO: # - Create sensible default options with translation; @@ -9,7 +10,6 @@ from django.utils.translation import ugettext_lazy as _ # - Ensure pertinence of the comics building way : block by block; # - Test upload to images file outside the DB ...; # - ... - class Style(models.Model): """ TODO: The choice list should be in DB -- 2.34.1