done some other shit
This commit is contained in:
parent
ce1080d7f2
commit
0e62b1a529
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +1,30 @@
|
||||
from django.contrib import admin
|
||||
from .models import Factuur, Formaat, Houtmarkt, Houtsoort, Klant, Voorraad
|
||||
|
||||
admin.site.register(Factuur)
|
||||
admin.site.register(Formaat)
|
||||
admin.site.register(Houtsoort)
|
||||
admin.site.register(Houtmarkt)
|
||||
admin.site.register(Klant)
|
||||
admin.site.register(Voorraad)
|
||||
@admin.register(Factuur)
|
||||
class FactuurAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
@admin.register(Formaat)
|
||||
class FormaatAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(Houtsoort)
|
||||
class HoutsoortAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
@admin.register(Houtmarkt)
|
||||
class HoutmarktAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
@admin.register(Klant)
|
||||
class KlantAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
@admin.register(Voorraad)
|
||||
class VoorraadAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
|
@ -63,7 +63,7 @@ class Voorraad(models.Model):
|
||||
|
||||
def __str__(self):
|
||||
"""String for representing the Model object."""
|
||||
return self.Voorraad_ID
|
||||
return str(self.Voorraad_ID)
|
||||
|
||||
|
||||
class Klant(models.Model):
|
||||
@ -100,3 +100,7 @@ class Factuur(models.Model):
|
||||
def __str__(self):
|
||||
"""String for representing the Model object."""
|
||||
return self.Factuur_ID
|
||||
class Meta:
|
||||
db_table = "talbename"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user