From: Jérôme Benoit Date: Sun, 24 Nov 2013 11:51:48 +0000 (+0100) Subject: Source indentation X-Git-Url: https://git.piment-noir.org/?p=webcomics.git;a=commitdiff_plain;h=9481a8d3547d4fb0acbc6917e4ae158e5f751413 Source indentation Signed-off-by: Jérôme Benoit --- diff --git a/comicsporn/admin.py b/comicsporn/admin.py index 45d0e80..00cbd7d 100644 --- a/comicsporn/admin.py +++ b/comicsporn/admin.py @@ -14,7 +14,7 @@ class UserProfileInline(admin.StackedInline): verbose_name_plural = _('Users profiles') class UserAdmin(UserAdmin): - inlines = (UserProfileInline, ) + inlines = (UserProfileInline,) admin.site.unregister(User) admin.site.register(User, UserAdmin) @@ -25,9 +25,9 @@ class Comic_blockInline(admin.TabularInline): class ComicAdmin(admin.ModelAdmin): fieldsets = [ - (_('Title'), {'fields': ['title']}), - (_('Online'), {'fields': ['is_online']}), - (_('Comic block'), {'fields': ['blocks']}), + (_('Title'), {'fields': ['title']}), + (_('Online'), {'fields': ['is_online']}), + (_('Comic block'), {'fields': ['blocks']}), ] inlines = [ Comic_blockInline, diff --git a/comicsporn/models.py b/comicsporn/models.py index e162d04..938c9e7 100644 --- a/comicsporn/models.py +++ b/comicsporn/models.py @@ -52,7 +52,7 @@ class Comic_block(models.Model): """ Let's view a comics as an images serie """ - name = models.CharField(_('name'), max_length=50) # probably not useful, it's just simplier to assemble afterwards for author + name = models.CharField(_('name'), max_length=50) # probably not useful, it's just simplier to assemble afterwards for author number = models.IntegerField(_('number')) content = models.ImageField(upload_to='block_contents') # TODO: probably not useful diff --git a/manage.py b/manage.py index 3e4eedc..b50edd7 100644 --- a/manage.py +++ b/manage.py @@ -2,7 +2,7 @@ from django.core.management import execute_manager import imp try: - imp.find_module('settings') # Assumed to be in the same directory. + imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) diff --git a/settings.py b/settings.py index 149f00e..25c4a7e 100644 --- a/settings.py +++ b/settings.py @@ -12,12 +12,12 @@ MANAGERS = ADMINS DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. - 'NAME': 'django', # Or path to database file if using sqlite3. - 'USER': 'django', # Not used with sqlite3. - 'PASSWORD': 'django', # Not used with sqlite3. - 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. + 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'django', # Or path to database file if using sqlite3. + 'USER': 'django', # Not used with sqlite3. + 'PASSWORD': 'django', # Not used with sqlite3. + 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # Set to empty string for default. Not used with sqlite3. } }