Skip to content

Instantly share code, notes, and snippets.

@andybak
Created April 22, 2014 19:27
Show Gist options
  • Select an option

  • Save andybak/11191339 to your computer and use it in GitHub Desktop.

Select an option

Save andybak/11191339 to your computer and use it in GitHub Desktop.
class InventoryEvent(AbstractEvent):
booking_stock_item = models.ForeignKey('office.BookingStockItem', null=True, blank=True)
booking_consumable = models.ForeignKey('office.BookingConsumable', null=True, blank=True)
purchase = models.ForeignKey('inventory.Purchase', null=True, blank=True)
cross_hire = models.ForeignKey('inventory.CrossHire', null=True, blank=True)
booking_cross_hire = models.ForeignKey('office.BookingCrossHire', null=True, blank=True)
repair = models.ForeignKey('inventory.Repair', null=True, blank=True)
missing = models.ForeignKey('inventory.Missing', null=True, blank=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment