<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff></diff>
      <filename>dbsamples.db</filename>
    </modified>
    <modified>
      <diff>@@ -26,11 +26,11 @@ class MacroArea(models.Model):
 	&gt;&gt;&gt; area6b.name = &quot;6b&quot;
 	&gt;&gt;&gt; area6b.provinces = (Province(&quot;Na&quot;, &quot;Napoli&quot;), Province(&quot;Sa&quot;, &quot;Salerno&quot;))
 	&quot;&quot;&quot;
-	name = models.CharField(max_length = 10)
+	code = models.CharField(max_length = 10, unique = True)
 	provinces = models.ManyToManyField(Province)
 
 	def __unicode__(self):
-		return self.name
+		return self.code
 
 	class Admin: pass
 	
@@ -73,17 +73,24 @@ class Individual(models.Model):
 	father = models.ForeignKey(&quot;self&quot;, null = True, blank = True, help_text = &quot;Father of the individual&quot;, related_name = &quot;father_&quot;)
 	grandfather_father = models.ForeignKey(&quot;self&quot;, null = True, blank = True, verbose_name = &quot;Grand Father by father&quot;, related_name = &quot;grandfatherfather_&quot;)
 	grandmother_father = models.ForeignKey(&quot;self&quot;, null = True, blank = True, verbose_name = &quot;Grand Mother by father&quot; , related_name = &quot;grandmotherfather&quot;)
+
 	mother = models.ForeignKey(&quot;self&quot;, null = True, blank = True, help_text = &quot;Mother of the individual&quot;, related_name = &quot;mother_&quot;)
 	grandfather_mother = models.ForeignKey(&quot;self&quot;, null = True, blank = True, verbose_name = &quot;Gran Father by mother&quot;, related_name = &quot;grandfathermother&quot;)
 	grandmother_mother = models.ForeignKey(&quot;self&quot;, null = True, blank = True, verbose_name = &quot;Gran Mother by mother&quot;, related_name = &quot;grandmothermother&quot;)
 
+	def is_donator(self):
+		return self.samples_set.count()
+
 	def __unicode__(self):
 		if self.lastname:
-			return &quot;individual %s (%s)&quot; % (self.id, self.lastname)
+			repr = &quot;individual %s (%s)&quot; % (self.id, self.lastname)
 		else:
-			return &quot;individual %s&quot; % self.id
+			repr = &quot;individual %s&quot; % self.id
+		return repr
 
-	class Admin: pass
+	class Admin: 
+		list_display = ('id', 'is_donator', 'lastname', 'sex', 'place_of_birth', 'father', 'grandfather_father', 'grandmother_father', 'mother', 'grandfather_mother', 'grandmother_mother')
+		list_filter = ('place_of_birth', )
 
 
 class Sample(models.Model):</diff>
      <filename>samples/models.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>23e6957d54b9a1f4a98d8be50954a165c2a82796</id>
    </parent>
  </parents>
  <author>
    <name>giovanni dall'olio</name>
    <email>dalloliogm@gmail.com</email>
  </author>
  <url>http://github.com/dalloliogm/samples-database/commit/c422d064e19b003f36b823d0a6965df5c09626a7</url>
  <id>c422d064e19b003f36b823d0a6965df5c09626a7</id>
  <committed-date>2008-07-18T04:57:56-07:00</committed-date>
  <authored-date>2008-07-18T04:57:56-07:00</authored-date>
  <message>added some list_display fields to Individual and Sample</message>
  <tree>7028050cb1d3749460ed615104c2738da5647028</tree>
  <committer>
    <name>giovanni dall'olio</name>
    <email>dalloliogm@gmail.com</email>
  </committer>
</commit>
