Maybe the misspelling of location in your model Room. location not 
lotation, also the Foreign key would need to match in property.  

On Wednesday, May 21, 2014 12:31:13 PM UTC-6, Ricardo Barbosa wrote:
>
> Hi there,
>
> Today I've added a manytomanyfield (facilites) and the widget doesn't 
> appear on the admin, any pointers?
>
> #models.py
> class Room(Orderable):
>     parent = models.ForeignKey("Property") 
>     name = models.CharField(max_length=32)
>     lotation = models.IntegerField(default=1,help_text="")
>     facilities = models.ManyToManyField("Facility")
>  
>     def __str__(self):
>         return "%s -> %s" % (self.parent.name,self.name)
>
> class Property(SiteRelated):
>     class Meta:
>         verbose_name_plural = "properties"
>     name = models.CharField(max_length=32,unique=True,help_text="Has to be 
> uniqure")
>     location = models.ForeignKey("Location")
>     
> #admin.py
> class RoomInline(TabularDynamicInlineAdmin):
>     model = Room
>
> class PropertyAdmin(admin.ModelAdmin):
>     inlines = (RoomInline,)
>
> admin.site.register(Property,PropertyAdmin)
>
> Thank You!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to