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 django.contrib import admin
|
||||||
from .models import Factuur, Formaat, Houtmarkt, Houtsoort, Klant, Voorraad
|
from .models import Factuur, Formaat, Houtmarkt, Houtsoort, Klant, Voorraad
|
||||||
|
|
||||||
admin.site.register(Factuur)
|
@admin.register(Factuur)
|
||||||
admin.site.register(Formaat)
|
class FactuurAdmin(admin.ModelAdmin):
|
||||||
admin.site.register(Houtsoort)
|
pass
|
||||||
admin.site.register(Houtmarkt)
|
|
||||||
admin.site.register(Klant)
|
@admin.register(Formaat)
|
||||||
admin.site.register(Voorraad)
|
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):
|
def __str__(self):
|
||||||
"""String for representing the Model object."""
|
"""String for representing the Model object."""
|
||||||
return self.Voorraad_ID
|
return str(self.Voorraad_ID)
|
||||||
|
|
||||||
|
|
||||||
class Klant(models.Model):
|
class Klant(models.Model):
|
||||||
@ -100,3 +100,7 @@ class Factuur(models.Model):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
"""String for representing the Model object."""
|
"""String for representing the Model object."""
|
||||||
return self.Factuur_ID
|
return self.Factuur_ID
|
||||||
|
class Meta:
|
||||||
|
db_table = "talbename"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user