Typos and migrations

This commit is contained in:
Christoffer Viken 2015-08-16 15:57:48 +02:00
parent f6853f441b
commit 43d2ad6352
4 changed files with 11 additions and 3 deletions

Binary file not shown.

View File

@ -1,3 +1,11 @@
from django.contrib import admin from django.contrib import admin
from .models import Calculation, Debt, Settlement
# Register your models here. # Register your models here.
@admin.register(Calculation, Debt, Settlement)
class GenericAdmin(admin.ModelAdmin):
pass

View File

@ -1,11 +1,11 @@
from django.contrib import admin from django.contrib import admin
from .models import UserProfile, Community, Event from .models import UserProfile, Community, Event, Listing, ShoppingList, Subevent
# Register your models here. # Register your models here.
@admin.register(UserProfile, Community, Event) @admin.register(UserProfile, Community, Event, Listing, ShoppingList, Subevent)
class GenericAdmin(admin.ModelAdmin): class GenericAdmin(admin.ModelAdmin):
pass pass

View File

@ -41,7 +41,7 @@ class Subevent(models.Model):
class ShoppingList(models.Model): class ShoppingList(models.Model):
name = models.CharField(max_length=64) name = models.CharField(max_length=64)
price = models.IntField price = models.IntegerField()
payers = models.ManyToManyField(UserProfile) payers = models.ManyToManyField(UserProfile)
subevent = models.ForeignKey(Subevent) subevent = models.ForeignKey(Subevent)