You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure how to fix this, I'm beyond the tutorial that I was using now... Anyway I'm trying to record the administration of a substance (by its id field), within the 'usage' or 'administration' record that I'm creating. Not quite sure how to get this laid out so Django will be happy with it:
class Usage(models.Model):
sub = models.ForeignKey(Substance)
dosage = models.IntegerField()
timestamp = models.DateTimeField('time administered', default=timezone.now)
notes = models.CharField(max_length=160)
The text was updated successfully, but these errors were encountered:
Not sure how to fix this, I'm beyond the tutorial that I was using now... Anyway I'm trying to record the administration of a substance (by its
id
field), within the 'usage' or 'administration' record that I'm creating. Not quite sure how to get this laid out so Django will be happy with it:The text was updated successfully, but these errors were encountered: