Typos and migrations
This commit is contained in:
parent
f6853f441b
commit
43d2ad6352
Binary file not shown.
|
@ -1,3 +1,11 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import Calculation, Debt, Settlement
|
||||
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
@admin.register(Calculation, Debt, Settlement)
|
||||
class GenericAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import UserProfile, Community, Event
|
||||
from .models import UserProfile, Community, Event, Listing, ShoppingList, Subevent
|
||||
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
@admin.register(UserProfile, Community, Event)
|
||||
@admin.register(UserProfile, Community, Event, Listing, ShoppingList, Subevent)
|
||||
class GenericAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
|
|
@ -41,7 +41,7 @@ class Subevent(models.Model):
|
|||
|
||||
class ShoppingList(models.Model):
|
||||
name = models.CharField(max_length=64)
|
||||
price = models.IntField
|
||||
price = models.IntegerField()
|
||||
payers = models.ManyToManyField(UserProfile)
|
||||
subevent = models.ForeignKey(Subevent)
|
||||
|
||||
|
|
Loading…
Reference in New Issue