From: Jérôme Benoit Date: Fri, 1 Nov 2013 23:48:55 +0000 (+0100) Subject: Indendation cleanup X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=654133ef875bc5e3ac853050459509da240e7f14;p=webcomics.git Indendation cleanup Signed-off-by: Jérôme Benoit --- diff --git a/comicsporn/__init__.pyc b/comicsporn/__init__.pyc index 6559fb9..449f99d 100644 Binary files a/comicsporn/__init__.pyc and b/comicsporn/__init__.pyc differ diff --git a/comicsporn/admin.py b/comicsporn/admin.py index 395d8d3..6e1f222 100644 --- a/comicsporn/admin.py +++ b/comicsporn/admin.py @@ -18,19 +18,19 @@ admin.site.unregister(User) admin.site.register(User, UserAdmin) class Comic_blockInline(admin.TabularInline): - model = Comic.blocks.through - extra = 10 + model = Comic.blocks.through + extra = 10 class ComicAdmin(admin.ModelAdmin): - fieldsets = [ + fieldsets = [ (_('Title'), {'fields': ['title']}), (_('Online'), {'fields': ['is_online']}), (_('Comic block'), {'fields': ['blocks']}), ] - inlines = [ + inlines = [ Comic_blockInline, ] admin.site.register(Comic_block) - + admin.site.register(Comic) diff --git a/comicsporn/models.py b/comicsporn/models.py index 0cea8c9..e0ed5db 100644 --- a/comicsporn/models.py +++ b/comicsporn/models.py @@ -35,12 +35,12 @@ class UserProfile(models.Model): The default behaviour of class inheritance is to create OnetoOne relationship between parent and child TODO: Which fields are required to interact with the ads publisher ? """ - ADS_PUBLISHER_CHOICES = ( - ('AS', 'Advert Stream'), - ('TJ', 'Traffic Junky'), - ) - ads_publisher = models.CharField(max_length=50, choices=ADS_PUBLISHER_CHOICES) - ads_publisher_login = models.CharField(max_length=50) + ADS_PUBLISHER_CHOICES = ( + ('AS', 'Advert Stream'), + ('TJ', 'Traffic Junky'), + ) + ads_publisher = models.CharField(max_length=50, choices=ADS_PUBLISHER_CHOICES) + ads_publisher_login = models.CharField(max_length=50) class Meta: verbose_name = _('User profile') diff --git a/comicsporn/models.pyc b/comicsporn/models.pyc index 1ad9b55..5293f34 100644 Binary files a/comicsporn/models.pyc and b/comicsporn/models.pyc differ