Changeset 9054


Ignore:
Timestamp:
Apr 15, 2011, 7:00:30 PM (14 years ago)
Author:
rick
Message:

Get a admin portal working for debugging.

Location:
src/django_gheat/gheat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/admin.py

    r9041 r9054  
    1 from gheat.models import Accespoint, Meting, Gebruiker
     1from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting
    22from django.contrib import admin
    33
     4admin.site.register(Accespoint)
     5admin.site.register(Apparatuur)
    46admin.site.register(Gebruiker)
     7admin.site.register(MeetRondje)
     8admin.site.register(Meting)
  • src/django_gheat/gheat/models.py

    r9053 r9054  
    2828  apparatuur = models.ForeignKey(Apparatuur)
    2929  def __unicode__(self):
    30     return "%s - %s" % (self.naam)
     30    return "%s - %s" % (self.gebruiker.naam, self.naam)
    3131
    3232class Meting(models.Model):
     
    3737  signaal = models.IntegerField(max_length=3)
    3838  objects = managers.MetingManager()
     39  def __unicode__(self):
     40    return "%s @ %s,%s : %s" % (self.accespoint.ssid, self.latitude, self.longitude, self.signaal)
Note: See TracChangeset for help on using the changeset viewer.