the way I manage my inventory system is keep all devices in one table and
flag assigned or unassigned like you're trying to do. Each is then assigned
to a locationID.
On Thursday, June 24, 2021 at 4:24:22 PM UTC-5 murad...@gmail.com wrote:
> Hi Django developers,
> i am new in Python,
>
> i wan
You'll have to define "in_use" as a models.BooleanField()
I would have base class Devices
and have Stock and Assign inherit from those
On Thursday, June 24, 2021 at 4:24:22 PM UTC-5 murad...@gmail.com wrote:
> Hi Django developers,
> i am new in Python,
>
> i want to develop a simple app stock
Hi Django developers,
i am new in Python,
i want to develop a simple app stock management.
can you give me a brief idea how to add device to stock if it hasnt
assigned to employee
i have below models
class Device(models.Model):
STATUS = (
('in use', in use),
('available', 'available')
)
Yeah I was using the inlines. I actually came up with something of a
workaround today. I put Location inlines in the Site page and then
registered Locations on the admin page. Locations then have Image inlines.
It's not as user friendly, but it will do as long as it works. I'll look
into the ne
Hi,
Seems you need here admin inlines, these allow you to insert/edit related
objects inline when editing the main object. For example, when editing a
Site, you will be able to also edit Images and Locations, though it only
supports 1 level, so with default configuration you may probably not be
On 11 April 2017 at 07:32, Liam H wrote:
> Hi,
>
> I'm new to Django, programming, web apps, the whole lot. I've been working
> on an app for a while now, but I'm having trouble figuring out how to
> organise my models in an effective way. Im using Django 1.10 and Python 2.7.
>
> Here's a rough e
Hi,
I'm new to Django, programming, web apps, the whole lot. I've been working
on an app for a while now, but I'm having trouble figuring out how to
organise my models in an effective way. Im using Django 1.10 and Python 2.7.
Here's a rough example of the structure I'm trying:
class Site(model
7 matches
Mail list logo