Changeset 9395 for src/django_gheat/gheat
- Timestamp:
- Jul 12, 2011, 3:28:05 PM (13 years ago)
- Location:
- src/django_gheat/gheat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/admin.py
r9054 r9395 1 from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting 1 from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting, MeetBestand 2 2 from django.contrib import admin 3 3 … … 5 5 admin.site.register(Apparatuur) 6 6 admin.site.register(Gebruiker) 7 admin.site.register(MeetRondje) 7 class MeetBestandInline(admin.TabularInline): 8 model = MeetBestand 9 class MeetRondjeAdmin(admin.ModelAdmin): 10 inlines = [ MeetBestandInline, ] 11 12 admin.site.register(MeetRondje, MeetRondjeAdmin) 8 13 admin.site.register(Meting) -
src/django_gheat/gheat/models.py
r9245 r9395 80 80 return "%s - %s" % (self.gebruiker.naam, self.naam) 81 81 82 class MeetBestand(models.Model): 83 meetrondje = models.ForeignKey(MeetRondje) 84 bestand = models.FileField(upload_to='meet-bestand/%Y/%m/%d') 85 86 82 87 class Meting(models.Model): 83 88 meetrondje = models.ForeignKey(MeetRondje)
Note:
See TracChangeset
for help on using the changeset viewer.